How to install prozess on a ubuntu machine using npm? - node.js

On the command npm install prozess it giving following error:
root#ubuntu:/usr/local/kafka/NodeKafka# sudo npm install prozess
npm http GET https://registry.npmjs.org/prozess
npm http 200 https://registry.npmjs.org/prozess
npm http GET https://registry.npmjs.org/prozess/-/prozess-0.4.0.tgz
npm http 200 https://registry.npmjs.org/prozess/-/prozess-0.4.0.tgz
npm http GET https://registry.npmjs.org/underscore/1.3.3
npm http GET https://registry.npmjs.org/buffermaker/0.0.10
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/binary/0.3.0
npm http GET https://registry.npmjs.org/crc32/0.2.2
npm http GET https://registry.npmjs.org/bignum/0.6.0
npm http 304 https://registry.npmjs.org/underscore/1.3.3
npm http 304 https://registry.npmjs.org/binary/0.3.0
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http GET https://registry.npmjs.org/binary/-/binary-0.3.0.tgz
npm http 304 https://registry.npmjs.org/buffermaker/0.0.10
npm http GET https://registry.npmjs.org/buffermaker/-/buffermaker-0.0.10.tgz
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 304 https://registry.npmjs.org/crc32/0.2.2
npm http GET https://registry.npmjs.org/crc32/-/crc32-0.2.2.tgz
npm http 304 https://registry.npmjs.org/bignum/0.6.0
npm http 200 https://registry.npmjs.org/binary/-/binary-0.3.0.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/crc32/-/crc32-0.2.2.tgz
npm http 200 https://registry.npmjs.org/buffermaker/-/buffermaker-0.0.10.tgz
> bignum#0.6.0 install /usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum
> node-gyp configure build
npm http GET https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/chainsaw
make: Entering directory `/usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum/build'
CXX(target) Release/obj.target/bignum/bignum.o
make: g++: Command not found
make: *** [Release/obj.target/bignum/bignum.o] Error 127
make: Leaving directory `/usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/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:789:12)
gyp ERR! System Linux 3.2.0-49-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
unbuild bignum#0.6.0
unbuild prozess#0.4.0
npm ERR! weird error 1
npm http 304 https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/traverse
npm ERR! not ok code 0
Does anyone know what is the dependency of this (bignum) and the way to install prozess?

Related

npm issue CERT_NOT_YET_VALID on raspberry pi

Can't get raspberry pi to npm install anything!
pi#raspberrypi ~/raspi-helloworld $ npm install serialport
npm WARN package.json raspi-helloworld#0.0.0 No README.md file found!
npm http GET http://registry.npmjs.org/serialport
npm http 304 http://registry.npmjs.org/serialport
npm http GET http://registry.npmjs.org/sf/0.1.6
npm http GET http://registry.npmjs.org/optimist
npm http GET http://registry.npmjs.org/nan
npm http GET http://registry.npmjs.org/node-pre-gyp
npm http GET http://registry.npmjs.org/bindings/1.1.1
npm http GET http://registry.npmjs.org/async/0.1.18
npm http 304 http://registry.npmjs.org/optimist
npm http 304 http://registry.npmjs.org/nan
npm http 304 http://registry.npmjs.org/async/0.1.18
npm http 304 http://registry.npmjs.org/sf/0.1.6
npm http 304 http://registry.npmjs.org/bindings/1.1.1
npm http 304 http://registry.npmjs.org/node-pre-gyp
npm http GET http://registry.npmjs.org/wordwrap
npm http 304 http://registry.npmjs.org/wordwrap
> serialport#1.4.0 install /home/pi/raspi-helloworld/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp http GET https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.14-linux-arm.tar.gz
node-pre-gyp http CERT_NOT_YET_VALID (falling back to source compile with node-gyp)
make: Entering directory `/home/pi/raspi-helloworld/node_modules/serialport/build'
make: Warning: File `../binding.gyp' has modification time 7.1e+05 s in the future
ACTION Regenerating Makefile
gyp: binding.gyp not found (cwd: /home/pi/raspi-helloworld/node_modules/serialport/build) while trying to load binding.gyp
make: *** [Makefile] Error 1
make: Leaving directory `/home/pi/raspi-helloworld/node_modules/serialport/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/pi/projects/node-v0.10.2-linux-arm-pi/lib/node_modules/npm/node_modules/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:757:12)
gyp ERR! System Linux 3.6.11+
gyp ERR! command "/home/pi/projects/node-v0.10.2-linux-arm-pi/bin/node" "/home/pi/projects/node-v0.10.2-linux-arm-pi/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--name=serialport" "--configuration=Release" "--module_name=serialport" "--version=1.4.0" "--major=1" "--minor=4" "--runtime=node" "--node_abi=v8-3.14" "--platform=linux" "--arch=arm" "--target_arch=arm" "--module_main=./serialport" "--host=https://node-serialport.s3.amazonaws.com/" "--module_path=/home/pi/raspi-helloworld/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.14-linux-arm" "--remote_path=./serialport/v1.4.0/Release/" "--package_name=v8-3.14-linux-arm.tar.gz" "--staged_tarball=build/stage/serialport/v1.4.0/Release/v8-3.14-linux-arm.tar.gz" "--hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/" "--hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.14-linux-arm.tar.gz"
gyp ERR! cwd /home/pi/raspi-helloworld/node_modules/serialport
gyp ERR! node -v v0.10.2
gyp ERR! node-gyp -v v0.9.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/home/pi/projects/node-v0.10.2-linux-arm-pi/bin/node rebuild --name=serialport --configuration=Release --module_name=serialport --version=1.4.0 --major=1 --minor=4 --runtime=node --node_abi=v8-3.14 --platform=linux --arch=arm --target_arch=arm --module_main=./serialport --host=https://node-serialport.s3.amazonaws.com/ --module_path=/home/pi/raspi-helloworld/node_modules/serialport/build/serialport/v1.4.0/Release/v8-3.14-linux-arm --remote_path=./serialport/v1.4.0/Release/ --package_name=v8-3.14-linux-arm.tar.gz --staged_tarball=build/stage/serialport/v1.4.0/Release/v8-3.14-linux-arm.tar.gz --hosted_path=https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/ --hosted_tarball=https://node-serialport.s3.amazonaws.com/serialport/v1.4.0/Release/v8-3.14-linux-arm.tar.gz' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/raspi-helloworld/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:76:29)
node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:703:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:770:5)
node-pre-gyp ERR! System Linux 3.6.11+
node-pre-gyp ERR! command "node" "/home/pi/raspi-helloworld/node_modules/serialport/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/raspi-helloworld/node_modules/serialport
node-pre-gyp ERR! node -v v0.10.2
node-pre-gyp ERR! node-pre-gyp -v v0.5.11
node-pre-gyp ERR! not ok
npm ERR! serialport#1.4.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! `sh "-c" "node-pre-gyp install --fallback-to-build"` failed with 1
npm ERR!
npm ERR! Failed at the serialport#1.4.0 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.6.11+
npm ERR! command "/home/pi/projects/node-v0.10.2-linux-arm-pi/bin/node" "/home/pi/projects/node-v0.10.2-linux-arm-pi/bin/npm" "install" "serialport"
npm ERR! cwd /home/pi/raspi-helloworld
npm ERR! node -v v0.10.2
npm ERR! npm -v 1.2.15
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/raspi-helloworld/npm-debug.log
npm ERR! not ok code 0
As the commenters have suggested, the first thing to check is that you have the correct system time -- or at least an incorrect time that falls within the range your certificate professes ;-)
The error code is nodejs error, not raspberry per se. It refers to invalid ssl certificate. This solution worked for me.
$ npm config set strict-ssl false
$ npm config set unsafe-perm true
$ npm config set registry http://registry.npmjs.org/
I had this error in Ubuntu WSL2 on Windows10.
A restart of my PC solved the issue.
Had this errorπŸ‘‡
npm ERR! code CERT_NOT_YET_VALID
npm ERR! errno CERT_NOT_YET_VALID
npm ERR! request to https://registry.npmjs.org/helmet failed, reason: certificate is not yet valid
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USER\AppData\Local\npm-cache_logs\2021-07-08T18_40_13_221Z-debug.log
Updating my system time worked.

Error while trying to install nodejs pm2 module

I'm trying to install pm2 module, but I'm facing this error. OS is Ubuntu 14.04 Beta2.
Node.js version is 0.10.25, npm - 1.4.7.
What am I doing wrong?
halkar#halkar-nb-ubuntu:~/source$ sudo npm install pm2 -g
.......
npm http 304 https://registry.npmjs.org/fsevents
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/recursive-readdir
npm http 304 https://registry.npmjs.org/configurable
npm WARN optional dep failed, continuing fsevents#0.2.0
> usage#0.3.9 install /usr/lib/node_modules/pm2/node_modules/usage
> node-gyp rebuild
Usage: gyp_main.py [options ...] [build_file ...]
gyp_main.py: error: no such option: --no-parallel
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
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.13.0-19-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/pm2/node_modules/usage
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/escape-regexp
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/mkdirp
npm ERR! usage#0.3.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
As a workaround, removing gyp solved this problem for me:
sudo apt-get remove gyp
Here is the issue itself listed in pm2 repository:
https://github.com/Unitech/pm2/issues/434

npm install soap errors

I just came across milewise/node-soap and when I run npm install soap, it fails with the following errors:
sudo npm install soap
npm http GET https://registry.npmjs.org/soap
npm http 304 https://registry.npmjs.org/soap
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/form-data
> node-expat#2.0.0 install /Users/rrazavipour-lp/node_modules/soap/node_modules/node-expat
> node-gyp rebuild
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
npm http GET https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/rrazavipour-lp/node_modules/soap/node_modules/node-expat
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
unbuild node-expat#2.0.0
unbuild soap#0.2.7
npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
unbuild request#2.27.0
npm http 200 https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm ERR! not ok code 0
Rezas-MacBook-Pro:node_modules rrazavipour-lp$
What is causing the failure?
Yes, it looks like you are missing make on your system. Have you installed xcode command line tools?
That should install make and other useful dev tools for you.
Here is another SO question related to installing xcode CLI tools :: Xcode 4.4 and later install Command Line Tools

How do I install mailparser module via npm on Windows 7 x64?

Apologies if there is something obvious I'm missing, I've actually never encountered this error before using npm:
C:\work\spark3>npm install mailparser
npm http GET https://registry.npmjs.org/mailparser
npm http 304 https://registry.npmjs.org/mailparser
npm http GET https://registry.npmjs.org/encoding
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/mimelib
npm http GET https://registry.npmjs.org/iconv
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/mimelib
npm http 304 https://registry.npmjs.org/encoding
npm http 304 https://registry.npmjs.org/iconv
npm http GET https://registry.npmjs.org/iconv-lite/0.2.7
npm http GET https://registry.npmjs.org/addressparser
npm http 304 https://registry.npmjs.org/iconv-lite/0.2.7
npm http 304 https://registry.npmjs.org/addressparser
> iconv#2.0.4 install C:\work\spark3\node_modules\mailparser\node_modules\iconv
> node-gyp rebuild
C:\work\spark3\node_modules\mailparser\node_modules\iconv>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack at errnoException (child_process.js:975:11)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:766:34)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\work\spark3\node_modules\mailparser\node_modules\iconv
gyp ERR! node -v v0.10.4
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm WARN optional dep failed, continuing iconv#2.0.4
mailparser#0.3.4 node_modules\mailparser
β”œβ”€β”€ mime#1.2.9
β”œβ”€β”€ mimelib#0.2.12 (addressparser#0.1.3)
└── encoding#0.1.6 (iconv-lite#0.2.7)
I have tried the following on my Windows machine after scouring the web:
Reinstalling Node.js
Reinstalling Python 2.7
Ensuring the path for Python is set
Updating npm
Installing Visual C++ Express 2010
Installing node-gyp globally
The problem is actually with the iconv module which, according to its GitHub page, "may or may not work with Windows".
Since mailparser declares it as an optional dependency, try downloading the mailparser source and remove iconv from package.json as a dependency.

How to install serialport with node v0.9.11-pre

Im trying to install serial port using the command "sudo npm install serialport".
Im running raspbian, I've updated/upgraded using apt get.
I installed node using the instructions in post 2 here
This is the error I'm getting:
pi#raspberrypi ~/Programming/node $ sudo npm install serialport
npm http GET https://registry.npmjs.org/serialport
npm http 304 https://registry.npmjs.org/serialport
npm http GET https://registry.npmjs.org/bindings/0.3.0
npm http GET https://registry.npmjs.org/async/0.1.18
npm http GET https://registry.npmjs.org/sf/0.1.3
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/node-gyp/0.6.2
npm http 304 https://registry.npmjs.org/async/0.1.18
npm http 304 https://registry.npmjs.org/sf/0.1.3
npm http 304 https://registry.npmjs.org/bindings/0.3.0
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/node-gyp/0.6.2
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/npmlog
npm http GET https://registry.npmjs.org/osenv
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/osenv
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/npmlog
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/mkdirp
npm WARN engine tar#0.1.16: wanted: {"node":"~0.5.9 || 0.6 || 0.7 || 0.8"} (current: {"node":"v0.9.11-pre","npm":"1.2.12"})
npm http GET https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/block-stream
> serialport#1.0.8 install /home/pi/node_modules/serialport
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:69:16)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:56:37)
gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:223:20)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:577:7)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:97:17)
gyp ERR! stack at maybeClose (child_process.js:677:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:744:5)
gyp ERR! System Linux 3.6.11+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/serialport
gyp ERR! node -v v0.9.11-pre
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm ERR! serialport#1.0.8 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the serialport#1.0.8 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.6.11+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "serialport"
npm ERR! cwd /home/pi/Programming/node
npm ERR! node -v v0.9.11-pre
npm ERR! npm -v 1.2.12
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Programming/node/npm-debug.log
npm ERR! not ok code 0
Clearly my node version is too up to date, how can i get around this?
Can anyone help me get this working?
Thanks
Solved it by removing this version and then installing version 0.8.16.
Thanks
I added the same problem, in my case it was a wrong dependency of a package (serialport forced to "1.0.x"). I add to change package.json of the old package to :
{
"name": "oldPackage",
"dependencies": {
"serialport": "1.1.x"
}
}

Resources