-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Installing on io.js 1.2 on Windows 8.1 attempts to download sass binary for node 1.3 #708
Comments
If I manually download the binary and place it in to the
Interestingly, if I use
|
@F21 I have got that very same error ( |
I was using |
@F21, Once again, this is mainly due to the strong names: #694. But even after that fix, this particular use case won't work for Windows. Which use-case? You are using iojs, but you are (unintentionally) calling it with its node.exe alias (which unfortunately is not just an alias or a symlink in Windows). This only applies to Windows: First of all, Quick Solution to your problem is: mkdir \temp; cd \temp
npm install npm
iojs node_modules\npm\bin\npm-cli.js install node-sass
# success! As you can see, io.js needs to be initiated with
For Linux/Mac most probably yes, for Windows no! See: nodejs/node#871 and appveyor/ci#139. As you can see, there is no straightforward solution to this complex (?) problem. But to quickly reproduce what exactly is wrong, once you finish installing node-sass with iojs -v
# should be v1.2
iojs -p "console.log(require('node-sass').renderSync({data:'a{b:c}'}))"
# should print:
{ stats:
{ entry: 'data',
start: 1424944152451,
includedFiles: [],
end: 1424944152452,
duration: 1 },
css: 'a {\n b: c; }\n',
map: '{}' } Then rename node -v
# should be v1.2
node -p process.execPath
# should be the path to iojs directory and it should be node.exe (not node.cmd)
# if it is node.cmd, that means you are probably using nvmw, which has the cool
# workaround for it, see iojs issue I linked above for details.
# To proceed with reproducing this bug, you should have a system level
# io.js v1.2 installed.
node -p "console.log(require('node-sass').renderSync({data:'a{b:c}'}))"
# will throw module registration exception
# ^^^^^ this is the actual problem, which I am trying to describe to iojs folks |
I use I think that the download link should not take the executable name. |
@boopathi, yes and that issue has been fixed. |
Closing this as external. The quick workaround is to use Alternatively, install nvmw, which has circumvented this issue by injecting |
I am using io.js 1.2 64-bit on Windows 8.1 64-bit.
Npm is version 2.6.0.
I am attempting to install
node-sass 2.0.1
and it is attempting to download the binary fornode 1.3
which does not exist:The text was updated successfully, but these errors were encountered: