Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Error while intalling node-sass #722

Closed
VaJoy opened this issue Feb 28, 2015 · 6 comments
Closed

Error while intalling node-sass #722

VaJoy opened this issue Feb 28, 2015 · 6 comments

Comments

@VaJoy
Copy link

VaJoy commented Feb 28, 2015

win7 64bit,iojs v1.0.1
as intalling node-sass it says:

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.0.1/win32-x64-node-1.0/binding.node

should I gotta update iojs or other method to fix it?

@VaJoy
Copy link
Author

VaJoy commented Feb 28, 2015

the whole info:

E:\tomcat\webapps\djtTest>npm install node-sass
-
> [email protected] install E:\tomcat\webapps\djtTest\node_modules\node-sass
> node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.0.1/win32-x64-node-1.0/binding.node

> [email protected] postinstall E:\tomcat\webapps\djtTest\node_modules\node-sass
> node scripts/build.js

module.js:324
    throw err;
          ^
Error: Cannot find module 'E:\tomcat\webapps\djtTest\node_modules\node-sass\node_modules\pangyp\bin\node-gyp'
    at Function.Module._resolveFilename (module.js:322:15)
    at Function.Module._load (module.js:264:25)
    at Function.Module.runMain (module.js:487:10)
    at startup (node.js:111:16)
    at node.js:809:3
Build failed
[email protected] node_modules\node-sass
├── [email protected]                                                                                                                                                                                                                                               
├── [email protected]                                                                                                                                                                                                                                                   
├── [email protected]                                                                                                                                                                                                                                                 
├── [email protected]                                                                                                                                                                                                                                                         
├── [email protected]                                                                                                                                                                                                                                                      
├── [email protected]                                                                                                                                                                                                                                                     
├── [email protected] ([email protected])                                                                                                                                                                                                                                     
├── [email protected] ([email protected])                                                                                                                                                                                                                               
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])                                                                                                                                               
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])                                                                                                                                              
├── [email protected] ([email protected], [email protected], [email protected])                                                                                                                                                                                            
├── [email protected] ([email protected])                                                                                                                                                                                                                                        
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])                                                                                                                                          
├── [email protected] ([email protected], [email protected], [email protected])                                                                                                                                                                                                      
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
, [email protected], [email protected], [email protected], [email protected])

@am11
Copy link
Contributor

am11 commented Feb 28, 2015

With node.js v2.0.1, only iojs v1.2.0 is supported. See node-sass-binaries release notes: https://github.com/sass/node-sass-binaries/releases/tag/v2.0.0. Also readme: https://github.com/sass/node-sass-binaries#compatibility.

@VaJoy
Copy link
Author

VaJoy commented Feb 28, 2015

@am11 I updated iojs to 1.2.0 but still failed

Your environment has been set up for using io.js 1.2.0 (x64) and npm.

C:\Users\Administrator>npm install node-sass -g
C:\Users\Administrator\AppData\Roaming\npm\node-sass -> C:\Users\Administrator\A
ppData\Roaming\npm\node_modules\node-sass\bin\node-sass

> [email protected] install C:\Users\Administrator\AppData\Roaming\npm\node_module
s\node-sass
> node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-bina
ries/v2.0.1/win32-x64-node-1.2/binding.node

> [email protected] postinstall C:\Users\Administrator\AppData\Roaming\npm\node_mo
dules\node-sass
> node scripts/build.js

module.js:324
    throw err;
          ^
Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modul
es\node-sass\node_modules\pangyp\bin\node-gyp'
    at Function.Module._resolveFilename (module.js:322:15)
    at Function.Module._load (module.js:264:25)
    at Function.Module.runMain (module.js:487:10)
    at startup (node.js:111:16)
    at node.js:799:3
Build failed
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\phonegap\node_modules\phonegap-build requires colors@'0.6.x' but will load
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\phonegap\node_modules\prompt\node_modules\winston requires colors@'0.x.x' but
will load
npm WARN unmet dependency C:\Users\Administrator\AppData\Roaming\npm\node_module
s\phonegap\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
[email protected] C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-sas
s
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], command
[email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], supports-colo
[email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected].
0, [email protected], [email protected], [email protected], [email protected]
, [email protected], [email protected], [email protected], [email protected], mime-types@2
.0.9, [email protected], [email protected], [email protected], [email protected], b
[email protected])
└── [email protected] ([email protected], [email protected], [email protected])

C:\Users\Administrator>

@am11
Copy link
Contributor

am11 commented Feb 28, 2015

Yes that is a big ordeal in Windows for multiple reasons. We have taken care of for upcoming release for Linux and Mac completely, but for Windows, the workaround is still half-way (and if you are not using nvmw, you will face this kind of issue in future).

The workaround is to use iojs to trigger npm explicitly:

:: this is cmd
:: 
:: nvmw install iojs-v1.2.0
:: nvmw use iojs-v1.2.0
::
mkdir /temp; cd /temp
npm install npm
iojs node_modules\npm\bin\npm-cli.js install node-sass
:: success!
iojs
:: this is io.js interactive console (REPL)
> require('node-sass').renderSync({data: '.myClass { float: right } '})

@VaJoy
Copy link
Author

VaJoy commented Feb 28, 2015

@am11 or u mean that I need to install iojs with nvmw install iojs-v1.2.0 ?
I gotta try it, wait a min...

@VaJoy
Copy link
Author

VaJoy commented Feb 28, 2015

@am11 deal it with nvmw, THX A LOT!!!!

@VaJoy VaJoy closed this as completed Feb 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants