-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPM fails on msbuild.exe with exit code 1 #119
Comments
Which version of node-gyp? $ node-gyp -v |
How would I find out?
|
$ cd "C:\Program Files (x86)\nodejs"
$ npm ls Show me the output there. |
C:\Program Files (x86)\nodejs>npm ls |
Ok so try updating node-gyp. From that same directory: $ npm install node-gyp |
C:\Program Files (x86)\nodejs>npm install node-gyp npm ERR! System Windows_NT 6.1.7601 npm ERR! System Windows_NT 6.1.7601 C:\Program Files (x86)\nodejs> |
Oh, sorry, you need to do that from a Command Prompt with Administrator privileges. Right click on cmd and do "run as administrator" and try again. |
So does installing bcrypt work now? |
Should I do this as administrator? |
Not strictly necessary, as long as you do it somewhere where the regular On Mon, Aug 6, 2012 at 1:02 PM, Gilbert Bishop-White <
|
c:\Users\Gilbert\WebstormProjects\NodeOfGames>npm install bcrypt --save
c:\Users\Gilbert\WebstormProjects\NodeOfGames\node_modules\bcrypt>node "C:\Progr npm ERR! System Windows_NT 6.1.7601 npm ERR! cwd c:\Users\Gilbert\WebstormProjects\NodeOfGames c:\Users\Gilbert\WebstormProjects\NodeOfGames> |
I mean there's just something up with your setup. Are you sure you have MSVC and the Windows 7 SDK installed as shown in the installation section of the README? https://github.com/TooTallNate/node-gyp#installation |
I have installed MSVC and Windows 7 SDK and now get this error:
|
Did you install OpenSSL as the node-bcrypt README says? https://github.com/ncb000gt/node.bcrypt.js#dependencies |
which version of Openssl should I install? Nathan Rajlich wrote:
|
Honestly I don't know, you're gonna have to figure that out. |
i've installed Openssl but there's no change, the lines: c:\users\gilbert.node-gyp\0.8.1\deps\openssl\openssl\include\openssl../../e_os2.h(56): are red Nathan Rajlich wrote:
|
I'm sorry, this is a bcrypt issue at this point. You'll need to open an issue over at that repo. |
Thankyou for your help Nathan Rajlich wrote:
|
Hi @TooTallNate, I also have that error when, in my case, trying to install Gulp. At some point I get:
Could you please provide some information what I could do? Installed is VS Express 2013. Thanks a lot! |
oh boy, nevermind: updating Everything™ to the latest version worked out well shame. |
Hi, I am facing issue in **npm install bufferutil _. It's giving the error _msbuild failed with exit code 1 Done following steps for node gyp issue. 1.Install VC++ Build Tools Technical Preview, choose Custom Install, and select both Windows 8.1 and Windows 10 SDKs. 2.Install Python 2.7, and add it to your PATH 3.npm config set python python2.7 --global 4.npm config set python C:\Python27\python.exe --global 5.npm config set msvs_version 2015 --global 6.set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140 Errors: Please help |
Check that your VS actually has C++ installed (just an option in Community editions) try https://www.visualstudio.com/downloads/ near the bottom of the page for the installer to be on the safe side. |
I am with a Windows 10 (64 bit) computer and I have experienced the very same issue. I managed to get it solved and here are my key steps taken:
Hope this can help you solve your problem. 😄 |
I also faced same Error on MSBuild.exe with Window 7 and window 10 64bit machine. I had tried number of attempt with installation of windows-build-tools global but got repeated failure. But when i install windows-build-tools local folder, i got the success. ( npm install --production windows-build-tools ) |
Thanks ganesh buddy, you have save my day,. i have spent for almost 2days,
Finally its working now man, thanks. Below i have posted my error and issue 👍
|
Just wanted to say that following TooTallNate's suggestion worked for me with the same problem just now (although my node is located at C:\Program Files\nodejs). Didn't need to install windows-build-tools locally. |
The real problem of this issue is variable setup , the "VCTargetsPath" 's variable was difference between window server and window 10. If you used window 10, it need to set "VCTargetsPath" with If you used widows server above command, it will give you some error then you need to set this variable via window system tool: System Properties>Environment Variables>System variables>New Then you need to set variable to VCTargetsPath and value is |
|
What is OS that you try to install? |
Caused by First,
Then,
|
In my case this issue appeared when I moved from Node v.6 to Node v.10. Fixed by updating project dependencies from package.json to be compatible with latest node. For example bcrypt from v.2 to v.3 etc... |
@soakit thank you, it`s work |
none of this solutions are working, i am using visual studio 2017. can anyone help me for this issue? |
getting error like : gyp ERR! build error npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
In VSTS we tried adding "Node Tool Installer" to always select latest node version. It worked. |
Facing the same issue in Jenkins. tried installing node-gyp, node-sass and setting VCTargetsPath. None of these worked. |
i have this error |
I'm having the same issue as above when installing expo-cli c:\users\dpdan\appdata\roaming\npm\node_modules\expo-cli\node_modules\sharp\src\stats.cc(130): error C2661: 'v8::Object::Set': no overloaded function takes 2 arguments [C:\Users\dpdan\AppD |
Hi, I need to do this website for this organization and I need to re-use some code by other, more professional developers who use these amazing, futuristic tools, Today is something like a fifth day I had to spend dealing with all these npm and yarn and whatever else is needed for modern website development. I tried using clean Fedora Environment, but then So maybe it would work on Windows? Maybe it would, but now I'm getting different number of warnings and errors every time although the install consistently crashes due to the error with I'm not looking for help, (I'll install Windows XP and I'm sure that will do the trick) but I wanted to share my disappointment. |
Support for Windows XP ended in 2014! |
If you are using node v13 or later it may not work due to node-sass being buggy. Try using nvm and change to an earlier version of node. I tried with node v10 and it worked fine. |
I got a similar issue, but trying to install
I installed all the build tools but I am unsure what to do now. |
when someone (like me) use Discord.js v12, Node.js v13+ is required |
Eu consegui resolver com: |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
The printout from cmd:
The text was updated successfully, but these errors were encountered: