question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install does not work on windows

See original GitHub issue

Note: yarn install works fine

I’ve cloned the repository, and tried to perform npm install, only to get the following:

tomo@TOMO-PC C:\GitRepositories\RequestNetwork\request-hardsix
> npm install

> scrypt@6.0.3 preinstall C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt
> node node-scrypt-preinstall.js


> scrypt@6.0.3 install C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt
> node-gyp rebuild


tomo@TOMO-PC C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt
> if not defined npm_config_node_gyp (node "C:\Users\tomo\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Warning: Missing input files:
C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\..\scrypt\win\include\config.h
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h
  The system cannot find the file specified.
TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\copied_files.vcxproj]


TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\scrypt_wrapper.vcxproj]


gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\tomo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "D:\\Programi\\nodejs\\node.exe" "C:\\Users\\tomo\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt
gyp ERR! node -v v7.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN @requestnetwork/request-network.js@0.1.7 No repository field.
npm WARN @requestnetwork/request-network.js@0.1.7 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\tomo\AppData\Roaming\npm-cache\_logs\2018-01-27T18_56_52_617Z-debug.log

After adding my Visual Studio installation to the path, therefore console being aware of cL.exe now, I get the following

Warning: Missing input files:                                                                                                                                                                                                                                                                                                   
C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\..\scrypt\win\include\config.h                                                                                                                                                                                                                      
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.                                                                                                                                                                                                                     
  Copying scrypt/win/include/config.h to scrypt/scrypt-1.2.0/config.h                                                                                                                                                                                                                                                           
  The system cannot find the file specified.                                                                                                                                                                                                                                                                                    
  win_delay_load_hook.cc                                                                                                                                                                                                                                                                                                        
C:\Program Files (x86)\Windows Kits\8.1\Include\um\windows.h(160): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\copied_files.vcxproj]                                                                         
  memlimit.c                                                                                                                                                                                                                                                                                                                    
  keyderivation.c                                                                                                                                                                                                                                                                                                               
  pickparams.c                                                                                                                                                                                                                                                                                                                  
  hash.c                                                                                                                                                                                                                                                                                                                        
C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\scrypt\win\include\stdint.h(43): fatal error C1083: Cannot open include file: 'limits.h': No such file or directory (..\src\scryptwrapper\pickparams.c) [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\scrypt_wrapper.vcxpr 
oj]                                                                                                                                                                                                                                                                                                                             
..\src\scryptwrapper\hash.c(27): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\scrypt_wrapper.vcxproj]                                                                                                         
..\src\util\memlimit.c(27): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\scrypt_wrapper.vcxproj]                                                                                                             
C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\scrypt\scrypt-1.2.0\libcperciva\alg\sha256.h(4): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory (..\src\scryptwrapper\keyderivation.c) [C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt\build\s 
crypt_wrapper.vcxproj]                                                                                                                                                                                                                                                                                                          
gyp ERR! build error                                                                                                                                                                                                                                                                                                            
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1                                                                                                                                                                                                                            
gyp ERR! stack     at ChildProcess.onExit (C:\Users\tomo\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)                                                                                                                                                                                        
gyp ERR! stack     at emitTwo (events.js:106:13)                                                                                                                                                                                                                                                                                
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)                                                                                                                                                                                                                                                                       
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)                                                                                                                                                                                                                                    
gyp ERR! System Windows_NT 10.0.16299                                                                                                                                                                                                                                                                                           
gyp ERR! command "D:\\Programi\\nodejs\\node.exe" "C:\\Users\\tomo\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"                                                                                                                                                               
gyp ERR! cwd C:\GitRepositories\RequestNetwork\request-hardsix\node_modules\scrypt                                                                                                                                                                                                                                              
gyp ERR! node -v v7.4.0                                                                                                                                                                                                                                                                                                         
gyp ERR! node-gyp -v v3.6.2                                                                                                                                                                                                                                                                                                     
gyp ERR! not ok                                                                                                                                                                                                                                                                                                                 
npm WARN @requestnetwork/request-network.js@0.1.7 No repository field.                                                                                                                                                                                                                                                          
npm WARN @requestnetwork/request-network.js@0.1.7 No license field.                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                
npm ERR! code ELIFECYCLE                                                                                                                                                                                                                                                                                                        
npm ERR! errno 1                                                                                                                                                                                                                                                                                                                
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`                                                                                                                                                                                                                                                                               
npm ERR! Exit status 1                                                                                                                                                                                                                                                                                                          
npm ERR!                                                                                                                                                                                                                                                                                                                        
npm ERR! Failed at the scrypt@6.0.3 install script.                                                                                                                                                                                                                                                                             
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                
npm ERR! A complete log of this run can be found in:                                                                                                                                                                                                                                                                            
npm ERR!     C:\Users\tomo\AppData\Roaming\npm-cache\_logs\2018-01-27T18_42_26_698Z-debug.log                                                                                                                                                                                                                                   

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jaipraveen51commented, May 4, 2018

How was this issue closed or fixed ? Can someone advise? same error.

0reactions
sayami007commented, Jan 10, 2022

How long does it take to install the windows-build-tools? I got stuck on:

-------------------Python---------------
Successfully installed Python 2.7

Does it take a long time to install it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

This npm install is not working on Windows - node.js
This npm install is not working on Windows · ran it as admin, · tried npm install -g · restarted the XAMPP server...
Read more >
How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
Read more >
npm install is not working in Windows 10 #15719 - GitHub
I had similar issue and I found that it was related to firewall / proxy (the installation process tried and didn't succeed to...
Read more >
npm command not found | Career Karma
On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found