node-sass: Trouble Installing gulp-sass - Error: Cannot find module 'C:\scripts\install.js'
I’ve been stuck on this for several hours. I spent a lot of time googling and trying other’s suggestions but no luck so far…
Here’s a snapshot of my setup.
PATH %appdata%\npm; %ProgramFiles%\nodejs; C:\Users\cjaeger1\AppData\Roaming\npm
NODE_PATH %AppData%\npm\node_modules
node -p process.versios { http_parser: ‘2.3’, node: ‘0.12.6’, v8: ‘3.28.71.19’, uv: ‘1.6.1’, zlib: ‘1.2.8’, modules: ‘14’, openssl: ‘1.0.1o’ }
node -p process.platform win32
node -p process.arch x64
npm install --save-dev gulp-sass npm WARN package.json iq-responsive@1.0.0 No repository field. npm WARN package.json iq-responsive@1.0.0 No README data
node-sass@3.2.0 install c:\sites\iq-responsive\node_modules\gulp-sass\node_mod ules\node-sass node scripts/install.js
module.js:338
throw err;
^
Error: Cannot find module ‘C:\scripts\install.js’
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Windows_NT 6.1.7601
npm ERR! argv “c:\Program Files\nodejs\node.exe” “c:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js” “install” “–save-dev” “gulp-sass”
npm ERR! node v0.12.6
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! node-sass@3.2.0 install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.2.0 install script ‘node scripts/install.js’.
npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/install.js npm ERR! You can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! c:\sites\iq-responsive\npm-debug.log
Let me know if I should include a gist of the npm-debug.log
Thanks for any guidance!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 33 (16 by maintainers)
same problem on ubuntu 14.04. on linux you now have to do this
npm install --unsafe-perm
Running npm install --save gulp-sass --unsafe-perm worked for me. node -v v8.9.3
npm -v 5.5.1 Also cleaning package.json dependencies and installing one by one worked for me.