I want to use snmpjs library in my project, but I cant install this package, I've downloaded the last npm, nodejs version but when I try this command:
npm install snmpjs
this error raised:
snmpjs#0.1.8 install /home/user/Desktop/Project1/node_modules/snmpjs
jison -o lib/parser.js lib/snmp.jison
sh: 1: jison: Permission denied
/home/user/Desktop/Project1/
├── ejs#2.5.5
├── express#4.14.0
├── kafka-node#1.0.7
├── net-snmp#1.1.19
└── pg#6.1.2
npm WARN enoent ENOENT: no such file or directory, open '/home/user/Desktop/Project1/package.json'
npm WARN Project1 No description
npm WARN Project1 No repository field.
npm WARN Project1 No README data
npm WARN Project1 No license field.
npm ERR! Linux 3.13.0-105-generic
npm ERR! argv "/home/user/.nvm/versions/node/v5.9.1/bin/node" "/home/user/.nvm/versions/node/v5.9.1/bin/npm" "install" "snmpjs"
npm ERR! node v5.9.1
npm ERR! npm v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! snmpjs#0.1.8 install: `jison -o lib/parser.js lib/snmp.jison`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the snmpjs#0.1.8 install script 'jison -o lib/parser.js lib/snmp.jison'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the snmpjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! jison -o lib/parser.js lib/snmp.jison
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs snmpjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls snmpjs
npm ERR! There is likely additional logging output above.
I've tried sudo and I got this error:
sh: 1: jison: Permission denied
npm ERR! weird error 126
npm ERR! not ok code 0
Try this:
npm uninstall XXXX
npm cache clean
npm i -g npm
I meet the problem on debian clould system.and after update node and npm.
Related
I got an error when trying to install appium. It always says: node error.
Here is code:
sudo npm install wd
wd#1.2.0 install /home/nataliya/node_modules/wd
node scripts/build-browser-scripts
sh: 1: node: not found
nataliya#1.0.0 /home/nataliya
├── json#9.0.6 extraneous
├── redis#0.7.3
├── selenium-webdriver#3.4.0
└── typescript#2.3.2
npm WARN nataliya#1.0.0 No description
npm WARN nataliya#1.0.0 No repository field.
npm ERR! Linux 4.4.0-77-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "wd"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! wd#1.2.0 install: `node scripts/build-browser-scripts`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the wd#1.2.0 install script 'node scripts/build-browser-scripts'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the wd package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build-browser-scripts
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs wd
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls wd
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/nataliya/npm-debug.log
And when I try to instal Appium, it comes up with this error:
sudo npm install -g appium
/home/nataliya/npm/bin/appium -> /home/nataliya/npm/lib/node_modules /appium/build/lib/main.js
/home/nataliya/npm/lib
└── appium#1.6.4
npm WARN optional Skipping failed optional dependency /appium/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.1.1
I think you are victim of this issue: node is installed in a way that you only have nodejs in $PATH, but you need node.
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/myName/.nvm/versions/node/v5.12.0/bin/node" "/Users/myName/.nvm/versions/node/v5.12.0/bin/npm" "start"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! appName#1.5.1 start: `ember server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the appName start script 'ember server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appName package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ember server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appName
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls appName
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/myName/Documents/Dev/ember-project-name/npm-debug
I linked gooey, one of my projects, to another project: ember, now i wanted to unlink them
so i did npm unlink
then npm start didn't work no matter what i did.
things I've tried:
npm install several times,
bower install several times,
rm -rf node_modules
rm -rf bower_components
npm install several times
npm start kept giving errors, like can't find some file in gooey or tell author that ember server failed
The solution:
option 1:
first do npm link so that it installs everything it needs
then npm install, then npm start will start working again.
option2:
if you want to unlink, do:
npm unlink
npm update
npm start
that should work too.
try npm install again before npm start if you have problems.
I want to install Ionic on xUbuntu.
When I execute sudo npm install -g ionic, I get the following output but have no idea what the issue is.
npm WARN package.json eyes#0.1.8 No repository field.
npm WARN package.json faye-websocket#0.4.4 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm WARN package.json indexof#0.0.1 No repository field.
/usr/local/bin/ionic -> /usr/local/lib/node_modules/ionic/bin/ionic
> node-sass#3.4.2 install /usr/local/lib/node_modules/ionic/node_modules/node-sass
> node scripts/install.js
sh: 1: node: not found
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 ERR! node-sass#3.4.2 install: `node scripts/install.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the node-sass#3.4.2 install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.2.0-27-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "ionic"
npm ERR! cwd /home/sisko
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/sisko/npm-debug.log
npm ERR! not ok code 0
sh: 1: node: not found
This seems to be the cause of the error.
You probably just need to install the legacy nodejs package:
sudo apt-get install nodejs-legacy
for more info see Cannot install packages using node package manager in Ubuntu
Another alternative is to use nvm https://github.com/creationix/nvm#installation , which lets you switch between different versions of node
nvm install node --reinstall-packages-from=node
nvm alias default node
I do have a PhantomJS 2.0 installed and running on machine.
whenever I try to install karma-phantomjs-launcher.
I am ending with following error
$npm install
npm WARN package.json karma-tap#1.0.3 No repository field.
phantomjs#1.9.19 install /root/ravi/strongloop/request/request/node_modules/karma-phantomjs-launcher/node_modules/phantomjs
node install.js
Found PhantomJS at /bin/phantomjs ...verifying
PhantomJS detected, but wrong version 2.0.0 # /bin/phantomjs.
npm ERR! phantomjs#1.9.19 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs#1.9.19 install script.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
Is their any way to start working with karma-phantomjs-launcher with existing PhantomJS2.0 .
I am trying to install db-mysql module for node.js using
sudo npm install db-mysql
but I am getting the following error:
npm WARN package.json hbase#0.0.5 No repository field.
npm WARN package.json log4js#0.2.2 No repository field.
npm WARN package.json mime#1.1.0 No repository field.
npm WARN package.json restler#2.0.1 No repository field.
npm WARN package.json db-mysql#0.7.6 'repositories' (plural) Not supported.
npm WARN package.json Please pick one as the 'repository' field
npm http GET https://registry.npmjs.org/db-mysql
npm http 304 https://registry.npmjs.org/db-mysql
> db-mysql#0.7.6 install /home/lifemap/lifemap-upload-master/node_modules/db-mysql
> node-waf configure build
sh: 1: node-waf: not found
> db-mysql#0.7.6 preuninstall /home/lifemap/lifemap-upload-master/node_modules/db-mysql
> rm -rf build/*
npm ERR! db-mysql#0.7.6 install: `node-waf configure build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the db-mysql#0.7.6 install script.
npm ERR! This is most likely a problem with the db-mysql package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls db-mysql
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-54-virtual
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "db-mysql"
npm ERR! cwd /home/lifemap/lifemap-upload-master
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/lifemap/lifemap-upload-master/npm-debug.log
npm ERR! not ok code 0`
Is there any other command or version I need to use or install for db-mysql?
Here is the root cause of the problem
sh: 1: node-waf: not found
node-waf has been replaced by node-gyp in Node 0.8, so you won't be able to build this module, unless you will fork the module and will change it to use node-gyp. Basically, seems that db-mysql is not actively supported anymore.
As a replacement, you could use mysql module, which is actively supported.
You can try one of this method without having to sudo. Hope it'll work!