node-sass: Unable to install node-sass and so gulp-sass on windows x64

Followed the guide on https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md with a failed result:

Here are my installation details

  • NPM version (npm -v): 3.10.9
  • Node version (node -v): v7.2.0
  • Node Process (node -p process.versions):
{ http_parser: '2.7.0',
  node: '7.2.0',
  v8: '5.4.500.43',
  uv: '1.10.1',
  zlib: '1.2.8',
  ares: '1.10.1-DEV',
  modules: '51',
  openssl: '1.0.2j',
  icu: '58.1',
  unicode: '9.0',
  cldr: '30.0.2',
  tz: '2016g' }
  • Node Platform (node -p process.platform): win32
  • Node architecture (node -p process.arch): x64
  • node-sass version (node -p "require('node-sass').info"):
module.js:472
    throw err;
    ^

Error: Cannot find module 'node-sass'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at [eval]:1:1
    at ContextifyScript.Script.runInThisContext (vm.js:26:33)
    at Object.exports.runInThisContext (vm.js:79:17)
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:571:32)
    at Immediate.<anonymous> (bootstrap_node.js:383:29)
  • npm node-sass versions (npm ls node-sass):
`-- (empty)

npm ERR! code 1

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 25 (7 by maintainers)

Most upvoted comments

someone should help am stuck in development…i cant use gulp, laravel-elixir, webpack…because of one fucking node-sass 😦

@merhawifissehaye node-sass v3.10 does not support Node 7. You’ll need to upgrade to a newer version.

@mrmartineau node-sass v3.10.0 doesn’t support node 7. You’ll need update to a newer version.

@merhawifissehaye Can you post a full log of your installation into gist.github.com ? It is important to check why the download of the node-sass binary file fails.

Also using NVM can be a source of trouble, because the node-sass binary module needs to match the current version of node. Switching node engines after installation will not work and you need to re-install node-sass.