windows - npm just won't install node sass -


i first encountered issue when trying use ionic , needed dependency templates. when tried install node-sass npm myself issue persisted. on windows 10 version 1703, both nodejs 6.11.3 , nodejs 8.4.0 tried out, ended same result. , vpn, http proxy tried no luck. basically, it's saying :

cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-57_binding.node"

when nothing fiddled ,it says :

connect econnrefused 127.0.0.1:443

when using npm set config proxy,it says like:

tunnel cannot established

when using vpn,it waits forever @ :

node scripts/install.js

or outputs same if nothing fiddled with.

when reporting bug, must provide information:

  • npm version (npm -v): 5.3.0 node latest(8.4.0), default version node 6.11.3
  • node version (node -v):lts(6.11.3) , latest(8.4.0)
  • node process (node -p process.versions):

    { http_parser: '2.7.0', node: '8.4.0', v8: '6.0.286.52', uv: '1.13.1', zlib: '1.2.11', ares: '1.10.1-dev', modules: '57', nghttp2: '1.22.0', openssl: '1.0.2l', icu: '59.1', unicode: '9.0', cldr: '31.0.1', tz: '2017b' }

  • node platform (node -p process.platform): win32
  • node architecture (node -p process.arch): x64
  • node-sass version (node -p "require('node-sass').info"): error: cannot find module 'node-sass'
  • npm node-sass versions (npm ls node-sass): `-- (empty)

and there output

---> npm install -g node-sass c:\users\rick\appdata\roaming\npm\node-sass -> c:\users\rick\appdata\roaming\npm\node_modules\node-sass\bin\node-sass  > node-sass@4.5.3 install c:\users\rick\appdata\roaming\npm\node_modules\node-sass > node scripts/install.js  downloading binary https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-57_binding.node cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-57_binding.node":  connect econnrefused 127.0.0.1:443  hint: if github.com not accessible in location       try setting proxy via http_proxy, e.g.        export http_proxy=http://example.com:1234  or configure npm proxy via        npm config set proxy http://example.com:8080  > node-sass@4.5.3 postinstall c:\users\rick\appdata\roaming\npm\node_modules\node-sass > node scripts/build.js  building: c:\program files\nodejs\node.exe c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info worked if ends ok gyp verb cli [ 'c:\\program files\\nodejs\\node.exe', gyp verb cli   'c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js', gyp verb cli   'rebuild', gyp verb cli   '--verbose', gyp verb cli   '--libsass_ext=', gyp verb cli   '--libsass_cflags=', gyp verb cli   '--libsass_ldflags=', gyp verb cli   '--libsass_library=' ] gyp info using node-gyp@3.6.2 gyp info using node@8.4.0 | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking python executable "python2" in path gyp verb `which` failed error: not found: python2 gyp verb `which` failed     @ getnotfounderror (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:13:12) gyp verb `which` failed     @ f (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:68:19) gyp verb `which` failed     @ e (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:80:29) gyp verb `which` failed     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:89:16 gyp verb `which` failed     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\isexe\index.js:42:5 gyp verb `which` failed     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\isexe\windows.js:36:5 gyp verb `which` failed     @ fsreqwrap.oncomplete (fs.js:152:21) gyp verb `which` failed  python2 { error: not found: python2 gyp verb `which` failed     @ getnotfounderror (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:13:12) gyp verb `which` failed     @ f (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:68:19) gyp verb `which` failed     @ e (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:80:29) gyp verb `which` failed     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\which\which.js:89:16 gyp verb `which` failed     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\isexe\index.js:42:5 gyp verb `which` failed     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\isexe\windows.js:36:5 gyp verb `which` failed     @ fsreqwrap.oncomplete (fs.js:152:21) gyp verb `which` failed   stack: 'error: not found: python2\n    @ getnotfounderror (c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\which\\which.js:13:12)\n    @ f (c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\which\\which.js:68:19)\n    @ e (c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\which\\which.js:80:29)\n    @ c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\which\\which.js:89:16\n    @ c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\isexe\\index.js:42:5\n    @ c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\isexe\\windows.js:36:5\n    @ fsreqwrap.oncomplete (fs.js:152:21)', gyp verb `which` failed   code: 'enoent' } gyp verb check python checking python executable "python" in path gyp verb `which` succeeded python c:\program files\python36\python.exe gyp verb check python version `c:\program files\python36\python.exe -c "import platform; print(platform.python_version());"` returned: "3.6.2\r\n" gyp verb not find "c:\program files\python36\python.exe". checking python launcher gyp verb not find "c:\program files\python36\python.exe". guessing location gyp verb ensuring file exists: c:\python27\python.exe gyp err! configure error gyp err! stack error: can't find python executable "c:\program files\python36\python.exe", can set python env variable. gyp err! stack     @ pythonfinder.failnopython (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:483:19) gyp err! stack     @ pythonfinder.<anonymous> (c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\node-gyp\lib\configure.js:508:16) gyp err! stack     @ c:\users\rick\appdata\roaming\npm\node_modules\node-sass\node_modules\graceful-fs\polyfills.js:284:29 gyp err! stack     @ fsreqwrap.oncomplete (fs.js:152:21) gyp err! system windows_nt 10.0.15063 gyp err! command "c:\\program files\\nodejs\\node.exe" "c:\\users\\rick\\appdata\\roaming\\npm\\node_modules\\node-sass\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp err! cwd c:\users\rick\appdata\roaming\npm\node_modules\node-sass gyp err! node -v v8.4.0 gyp err! node-gyp -v v3.6.2 gyp err! not ok build failed error code: 1 npm err! code elifecycle npm err! errno 1 npm err! node-sass@4.5.3 postinstall: `node scripts/build.js` npm err! exit status 1 npm err! npm err! failed @ node-sass@4.5.3 postinstall script. npm err! not problem npm. there additional logging output above.  npm err! complete log of run can found in: npm err!     c:\users\rick\appdata\roaming\npm-cache\_logs\2017-09-10t18_52_13_062z-debug.log 

then tells me:

well econnrefused easy - have configured npm talk proxy @ 127.0.0.1 (localhost) port 443 proxy not seem active port. please check proxy/vpn software configuration - port numbers must match.

but thing don't have proxy configured. tried npm config rm proxy,and npm config delete proxy, tried go , set proxy point npm proxy described above, nothing works.and here powershell enviroment config in case:

⚡ rick@desktop-1nva03e  ~  $reg = "hkcu:\software\microsoft\windows\currentversion\internet settings"  ⚡ rick@desktop-1nva03e  ~  $settings = get-itemproperty -path $reg                                                      ⚡ rick@desktop-1nva03e  ~  $settings.proxyserver 127.0.0.1:1080   ⚡ rick@desktop-1nva03e  ~  $settings.proxyenable 0 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -