Error installing brain.js on windows
See original GitHub issueWhat is wrong?
Upon installing, I get an error. This error seems to be coming from installing gl.
Where does it happen?
In command prompt.
How do we replicate the issue?
Simply run npm install -g brain.js
Expected behavior (i.e. solution)
Brain.js to install.
Version information
Npm: 6.14.8
Nodejs: 14.15.1
Browser:
Brain.js: latest build
How important is this (1-5)?
4
Other Comments
The output from installing:
C:\Users\charl>npm install -g 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.9.0 install C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl
> prebuild-install || node-gyp rebuild
prebuild-install WARN install No prebuilt binaries found (target=14.15.1 runtime=node arch=ia32 libc= platform=win32)
C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\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\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\deps\windows\dll\ia32\libGLESv2.dll
C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\deps\windows\dll\ia32\libEGL.dll
C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\deps\windows\dll\ia32\d3dcompiler_47.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Copying C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl/deps/windows/dll/ia32/d3dcompiler_47.dll to C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\build\Release\d3dcompiler_47.dll
The system cannot find the path specified.
Copying C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl/deps/windows/dll/ia32/libEGL.dll to C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\build\Release\libEGL.dll
The system cannot find the path specified.
Copying C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl/deps/windows/dll/ia32/libGLESv2.dll to C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\build\Release\libGLESv2.dll
The system cannot find the path specified.
bindings.cc
webgl.cc
procs.cc
win_delay_load_hook.cc
LINK : fatal error LNK1104: cannot open file 'libEGL.lib' [C:\Users\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl\build\webgl.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.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:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.19041
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\charl\AppData\Roaming\npm\node_modules\brain.js\node_modules\gl
gyp ERR! node -v v14.15.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gl@4.9.0 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gl@4.9.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\charl\AppData\Roaming\npm-cache\_logs\2020-12-13T13_43_15_610Z-debug.log
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Error On Installation · Issue #821 · BrainJS/brain.js - GitHub
When I run npm install brain.js , I get an error. What should I do to fix this? Here is what it shows...
Read more >I got this error when I was trying to install brain.js with npm, I ...
Try to install Visual Studio first. The errormessage says it quite clearly: 'You need to install the latest version of Visual Studio including ......
Read more >brain.js - npm
In most cases installing brain.js from npm should just work. However, if you run into problems, this mean prebuilt binaries are not able...
Read more >Brain.js: GPU accelerated Neural networks in JavaScript
In most cases installing brain.js from npm should just work. ... If the network failed to train, the error will be above the...
Read more >Beginner's Guide To Neural Networks In JavaScript With Brain.js
By using Neural Networks we're able to solve problems that can't ... Brain. js makes it very easy to get started with Neural...
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.67. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
I have fixed this by installing an x64 version of node js!