Skip to content

Instantly share code, notes, and snippets.

@chaim1221
Created February 25, 2015 22:21
Show Gist options
  • Save chaim1221/c0f17ac823dbf4aa63cf to your computer and use it in GitHub Desktop.
Save chaim1221/c0f17ac823dbf4aa63cf to your computer and use it in GitHub Desktop.
Cannot find module node-sass
C:\temp1>npm -v
2.6.0
C:\temp1>node -v
v0.12.0
C:\temp1>node -p process.versions
{ http_parser: '2.3',
node: '0.12.0',
v8: '3.28.73',
uv: '1.0.2',
zlib: '1.2.8',
modules: '14',
openssl: '1.0.1l' }
C:\temp1>node -p process.platform
win32
C:\temp1>node -p process.arch
x64
C:\temp1>node -p process.arch
x64
C:\temp1>npm install node-sass
/
> node-sass@2.0.1 install C:\temp1\node_modules\node-sass
> node scripts/install.js
module.js:338
throw err;
^
Error: Cannot find module 'C:\Users\celiyah\Documents\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.3.9600
npm ERR! argv "node" "C:\\Users\\celiyah\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js"
"install" "node-sass"
npm ERR! node v0.12.0
npm ERR! npm v2.6.0
npm ERR! code ELIFECYCLE
npm ERR! node-sass@2.0.1 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@2.0.1 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:\temp1\npm-debug.log
C:\temp1>node -p "console.log(require('node-sass').info())"
module.js:338
throw err;
^
Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at [eval]:1:13
at Object.exports.runInThisContext (vm.js:74:17)
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:460:26)
at evalScript (node.js:431:25)
at startup (node.js:90:7)
@chaim1221
Copy link
Author

PS C:\temp1> $host.version.major
4
PS C:\temp1> npm -v
2.6.0
PS C:\temp1> node -v
v0.12.0
PS C:\temp1> node -p process.versions
{ http_parser: '2.3',
node: '0.12.0',
v8: '3.28.73',
uv: '1.0.2',
zlib: '1.2.8',
modules: '14',
openssl: '1.0.1l' }
PS C:\temp1> node -p process.platform
win32
PS C:\temp1> node -p process.arch
x64
PS C:\temp1> npm install node-sass
|

node-sass@2.0.1 install C:\Users\celiyah\Documents\node_modules\node-sass
node scripts/install.js

module.js:338
throw err;
^
Error: Cannot find module 'C:\Users\celiyah\Documents\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.3.9600
npm ERR! argv "node" "C:\Users\celiyah\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "node-sass"
npm ERR! node v0.12.0
npm ERR! npm v2.6.0
npm ERR! code ELIFECYCLE

npm ERR! node-sass@2.0.1 install: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@2.0.1 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:\Users\celiyah\Documents\npm-debug.log
PS C:\temp1> node -p "console.log(require('node-sass').info())"
module.js:338
throw err;
^
Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at [eval]:1:13
at Object.exports.runInThisContext (vm.js:74:17)
at Object. ([eval]-wrapper:6:22)
at Module._compile (module.js:460:26)
at evalScript (node.js:431:25)
at startup (node.js:90:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment