npm install brain.js on Windows failure
See original GitHub issueMeme
The Kamal stack is my favorite
What is wrong?
npm install brain.js
outputs:
$ npm install brain.js
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> gl@4.8.0 install C:\Users\tmendez\Code\UpsellTraining\node_modules\gl
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=11.5.0 runtime=node arch=ia32 libc= platform=win32)
C:\Users\tmendez\Code\UpsellTraining\node_modules\gl>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\Users\tmendez\Code\UpsellTraining\node_modules\gl\deps\windows\dll\ia32\d3dcompiler_47.dll
C:\Users\tmendez\Code\UpsellTraining\node_modules\gl\deps\windows\dll\ia32\libEGL.dll
C:\Users\tmendez\Code\UpsellTraining\node_modules\gl\deps\windows\dll\ia32\libGLESv2.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\tmendez\Code\UpsellTraining\node_modules\gl\build\webgl.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\tmendez\Code\UpsellTraining\node_modules\gl
gyp ERR! node -v v11.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gl@4.8.0 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gl@4.8.0 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\tmendez\AppData\Roaming\npm-cache\_logs\2020-11-03T00_43_18_982Z-debug.log
Where does it happen?
In the git bash environment, when running npm install brain.js
at the root of my project.
How do we replicate the issue?
- Be on Windows
- Install Python 2.7
- Install Microsoft Visual Studio Build Tools 2015
- run in cmd:
npm config set msvs_version 2015
- run in cmd:
npm config set python python2.7
- Run
npm install brain.js
Expected behavior (i.e. solution)
Brain.js should install successfully
Version information
Nodejs: v11.5.0
Brain.js: @latest
How important is this (1-5)?
4, can’t run on Windows (but have had no problems on OSX)
Other Comments
I’ve tried python 3.9 and microsoft build tools 2017 as well, to no avail.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Strange npm error when running npm install brain.js
When trying to install brain.js , a strange error occurs and I can't understand what the problem is and where does the python...
Read more >brain.js - npm
Failing ; JSON; Standalone Function; Options ... npm install brain.js ... In most cases installing brain.js from npm should just work.
Read more >GPU accelerated Neural Networks in JavaScript: Brain.js
GPU accelerated Neural Networks in JavaScript, for Browsers and Node.js. ... Brain.js performs computations using GPU and gracefully fallback to pure ...
Read more >[Solved]-EEXIST Error on npm install-node.js - appsloveworld
[Solved]-EEXIST Error on npm install-node.js · Open the command line / Shell and run npm version · Update npm / nodejs to the...
Read more >brainjs/README.md - UNPKG
25, npm install brain. 26, ```. 27. 28, ## Using in the browser. 29, Download the latest [brain.js](https://github.com/harthur/brain/tree/gh-pages).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.70. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
it looks like it couldnt find any prebuilt binaries so it tried to build it and failed try installing windows-build-essential globally through npm, should get node-gyp working
linux is a bit more complicated try running this `npm install node-gyp -g
sudo apt-get install build-essential
sudo apt-get -y install make
sudo apt-get install manpages-dev
gcc --version
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python2.7
sudo apt-get install libxtst-dev libpng+±dev
sudo apt-get install xorg-dev`