Skip to content
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

Not able to install in node15 #75

Closed
ghost opened this issue Nov 23, 2020 · 2 comments
Closed

Not able to install in node15 #75

ghost opened this issue Nov 23, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 23, 2020

Hello I reinstalled my manjaro and node-snap7 seems to stop working. I checked python version and tried a lot of things. Can you help me?
Log:

prebuild-install WARN install No prebuilt binaries found (target=15.2.1 runtime=node arch=x64 libc= platform=linux)
sh: warning: setlocale: LC_ALL: cannot change locale (de)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (de)
gyp: Call to 'node -e "require('nan')"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (node:events:329:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Linux 5.8.18-1-MANJARO
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/woife/Dokumente/VMs/node/trunk/projects/plcServer/node_modules/node-snap7
gyp ERR! node -v v15.2.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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!     /home/woife/.npm/_logs/2020-11-23T22_13_38_628Z-debug.log```
@mathiask88
Copy link
Owner

Setup your locales properly
nodejs/node-gyp#1283

@ghost
Copy link
Author

ghost commented Nov 24, 2020

not only that. It seems there is a bug in a recent electron version which is causing this particular error:
https://bbs.archlinux.org/viewtopic.php?id=260980
The correct version and the error is gone.

@ghost ghost closed this as completed Nov 24, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant