Ubuntu/Linux fails on installation
See original GitHub issueWhen I try to install the module with npm on Ubuntu/Linux, I get the following error:
...
../src/angle.h:23:27: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/angle.h:23:47: error: expected ‘,’ or ‘...’ before ‘<’ token
static void New(const FunctionCallbackInfo<Value>& args);
^
../src/angle.h:24:33: error: ‘FunctionCallbackInfo’ does not name a type
static void Normalize(const FunctionCallbackInfo<Value>& args);
^
../src/angle.h:24:33: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
../src/angle.h:24:53: error: expected ‘,’ or ‘...’ before ‘<’ token
static void Normalize(const FunctionCallbackInfo<Value>& args);
^
make: *** [Release/obj.target/NativeExtension/src/NativeExtension.o] Error 1
make: Leaving directory `/home/***********/node-pokemon-go-api-example/node_modules/pokemon-go-node-api/node_modules/s2geometry-node/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.16.0-30-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/***********/node-pokemon-go-api-example/node_modules/pokemon-go-node-api/node_modules/s2geometry-node
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm http 304 https://registry.npmjs.org/is-buffer
npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm WARN engine is-buffer@1.1.3: wanted: {"node":">=0.12"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm ERR! weird error 1
npm WARN optional dep failed, continuing uglify-js@2.7.0
npm ERR! not ok code 0
What should I do?
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
ubuntu 22.04 installation failed every time
I am trying to install ubuntu 22.04 on it by following this guide.after installation completes.when i restart system it displays "reset ...
Read more >Ubuntu Installation Keeps Failing - Support & Help Requests
I am trying to install Ubuntu 20.04 onto my desktop but it keeps failing with error “The attempt to mount a file system...
Read more >Ubuntu failed to install. (my first time installing) - Reddit
EDIT: I can't seem to install steam, at first I downloaded it like normal, but then I received an error: "this file format...
Read more >How to Install Ubuntu 12.04 - Rose-Hulman
Ubuntu is a distribution of LINUX that is freely available from ... These instructions are for installing Ubuntu on the Lenovo laptops via...
Read more >Error: Module installation failed (Linux) | Deep Security
Error: Module installation failed (Linux) ... The error message "Module Installation Failed" indicates that your operating system's kernel version is not ...
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
89be0c955f730fadcc1028dac1b2c2d177a2113f may well have fixed it by bumping the version of the dependency that was failing the install.
I think it’s been fixed now, I’ve just pulled the latest master and got it installing on node@6 and node@4 and varied npm versions. Try a
git pull
andnpm install
again. 😸