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

node-gyp configure error: gyp_main.py #37

Closed
pradhanshrijal opened this issue Aug 28, 2015 · 2 comments
Closed

node-gyp configure error: gyp_main.py #37

pradhanshrijal opened this issue Aug 28, 2015 · 2 comments

Comments

@pradhanshrijal
Copy link

Error while trying: node-gyp configure on beaglebone black

node-gyp-err

@fivdi
Copy link
Owner

fivdi commented Aug 28, 2015

The error

gyp_main.py: error: no such option: --no-parallel

is a node-gyp issue that has been reported several times, for example, nodejs/node-gyp#426 and nodejs/node-gyp#434.

One workaround for this issue that has worked for me in the past is to directly modify the node-gyp file called configure.js. For example, on your machine node-gyp v2.0.2 is installed. Removing this line from configure.js should fix the no such option: --no-parallel error.

EDIT: Removed misleading information.

@fivdi
Copy link
Owner

fivdi commented Aug 30, 2015

I just tried the following on the BeagleBone Black:

  1. Prepared a fresh install of the latest recommended Debian image (2015-03-01). This version of Debian comes with node v0.10.29. Unfortunately, this version of node is broken as it doesn't carry the REPLACE_INVALID_UTF8 patch.

  2. Installed the NodeSource distribution of node v0.12.7. Installation instructions are available here.

  3. Modified /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js and removed this line. This line needs to be removed to work around the "no such option: --no-parallel" error.

  4. npm install onoff which output the following:

root@beaglebone:~/dev/onoff-v0.12.7# npm install onoff
/
> epoll@0.1.15 install /root/dev/onoff-v0.12.7/node_modules/onoff/node_modules/epoll
> node-gyp rebuild

make: Entering directory `/root/dev/onoff-v0.12.7/node_modules/onoff/node_modules/epoll/build'
  CXX(target) Release/obj.target/epoll/src/epoll.o
  SOLINK_MODULE(target) Release/obj.target/epoll.node
  SOLINK_MODULE(target) Release/obj.target/epoll.node: Finished
  COPY Release/epoll.node
make: Leaving directory `/root/dev/onoff-v0.12.7/node_modules/onoff/node_modules/epoll/build'
onoff@1.0.2 node_modules/onoff
└── epoll@0.1.15 (bindings@1.2.1, nan@2.0.8)
root@beaglebone:~/dev/onoff-v0.12.7# 

The installation was successful and everything looks ok.

@fivdi fivdi closed this as completed Aug 30, 2015
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

2 participants