question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu/Linux fails on installation

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
bencevanscommented, Jul 24, 2016

89be0c955f730fadcc1028dac1b2c2d177a2113f may well have fixed it by bumping the version of the dependency that was failing the install.

2reactions
bencevanscommented, Jul 24, 2016
##
# node@4.x npm@2.x
##
# Use Node.js 4.x
$ nvm use 4

# Check versions
$ node -v
v4.4.7

$ npm -v
2.15.8

# Check Installs
$ npm install
 ...
$ echo $?
0 # 0 means successful (ok exit code)

##
# node@4.x npm@latest
##
# Upgrade npm to latest
$ npm install -g npm@latest
npm@3.10.5

# Remove node_modules and attempt another install
$ rm -rf node_modules
$ npm install
...
$ echo $?
0 # successful

##
# node@6.x npm@latest
##
$ nvm use 6
$ npm install --global npm@latest
$ rm -rf node_modules
$ npm install
...
$ echo $?
0 # successful

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 and npm install again. 😸

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found