Git Product home page Git Product logo

Comments (2)

fivdi avatar fivdi commented on August 24, 2024

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.

from onoff.

fivdi avatar fivdi commented on August 24, 2024

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
/
> [email protected] 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'
[email protected] node_modules/onoff
└── [email protected] ([email protected], [email protected])
root@beaglebone:~/dev/onoff-v0.12.7# 

The installation was successful and everything looks ok.

from onoff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.