Installing ionic on Linux ERR!s - linux

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

Related

Installing node-sass errors with 'ELIFECYCLE'

I install npm and work, but I can not install node-sass. The next message following;
npm ERR! Linux 4.15.0-39-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "scss"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! one#1.0.0 scss: `node-sass -watch scss -o css`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the one#1.0.0 scss script 'node-sass -watch scss -o css'.
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 one package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-sass -watch scss -o css
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs one
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls one
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/maty/Desktop/MyFirstProyect/npm-debug.log
I install sass use;
npm install node-sass
sudo npm install -g sass
I checked the version, I made an easy sass code example.
Someone, could you help me?
Check your node version and node-sass version.
Mine was "node-sass":"4.5.3" node version i changed that too "node-sass":"^4.6.0"
(change this based on your node version by referring the below attached image) in package.json dev dependency and ran npm install. Installation was success and working fine.try this

need help in installing bitcoincore?

i keep getting this error
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\eze samuel\package.json'
npm WARN eze samuel No description
npm WARN eze samuel No repository field.
npm WARN eze samuel No README data
npm WARN eze samuel No license field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bitcore"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! bitcore-node#3.1.3 preinstall: `./scripts/download`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bitcore-node#3.1.3 preinstall script './scripts/download'.
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 bitcore-node package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./scripts/download
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bitcore-node
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bitcore-node
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\eze samuel\npm-debug.log
The bitcore library explicitly tells you to install globally:
Spin up a full node and join the network:
npm install -g bitcore
bitcored
Note the -g flag in the command. Currently, you're running npm install bitcore, which fails because you're trying to install locally without a package.json file. If you're not installing with -g, you must run npm init first before installing anything. In this case, you are installing with -g, so just follow the docs step by step, copying exactly what they tell you.

Failed at chromedriver installation

I'm going to install slamdata on debian Jessie, as described here, but I failed at npm install section and it wanted to install chromedriver. I even tried a mirror of chromedriver. Here is logs.
exec#mob-db1:/opt/slamdata$ npm install
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
chromedriver#2.23.1 install /opt/slamdata/node_modules/chromedriver
node install.js
Downloading http://chromedriver.storage.googleapis.com/2.23/chromedriver_linux64.zip
Saving to /tmp/chromedriver/chromedriver_linux64.zip
Receiving...
ChromeDriver installation failed undefined
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.0.14
npm ERR! Linux 4.2.8-1-pve
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.4.0
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! chromedriver#2.23.1 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver#2.23.1 install script node install.js.
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 chromedriver 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 information on how to open an issue for this project with:
npm ERR! npm bugs chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls chromedriver
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/slamdata/npm-debug.log
exec#mob-db1:/opt/slamdata$ npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver
npm WARN deprecated npmconf#2.1.2: this package has been reintegrated into
npm and is now out of date with respect to npm
chromedriver#2.23.1 install /opt/slamdata/node_modules/chromedriver
node install.js
Downloading http://npm.taobao.org/mirrors/chromedriver/2.23/chromedriver_linux64.zip
Saving to /tmp/chromedriver/chromedriver_linux64.zip
Receiving...
ChromeDriver installation failed undefined
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.0.14
npm ERR! Linux 4.2.8-1-pve
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "chromedriver" "--chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver"
npm ERR! node v6.4.0
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! chromedriver#2.23.1 install: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver#2.23.1 install script 'node install.js'.
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 chromedriver 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 information on how to open an issue for this project with:
npm ERR! npm bugs chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls chromedriver
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/slamdata/npm-debug.log
I met it with 'yarn install' which info 'chromedriver: ChromeDriver installation failed Error with http'.So i try to install chromedriver before 'yarn install'.
And then solve it.
https://www.npmjs.com/package/chromedriver
If you are not able to install chrome driver through npm, use the binary files of chrome driver. Make sure you download the same version binary file as that of your chrome browser.
Go to: https://chromedriver.chromium.org/
This will give you an exe file.
Put this file in user/AppData/Roaming/npm directory.
set this to PATH environment variables.
Thats it! You are done :)

npm unable to install dependencies

I'm trying to install some npm modules and all goes fine until I try to install the dependencies of the installed modules. npm shows this log:
$ sudo npm install -g
npm ERR! addLocal Could not install .
npm ERR! Error: ENOENT, open 'package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g"
npm ERR! cwd /Users/roemerbakker
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.21
npm ERR! path package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/roemerbakker/npm-debug.log
npm ERR! not ok code 0
$
Also tried the command without -g but it doesn't work either.
There is no need for this. When you install a npm package with npm install <package name> (globally or locally), it already installs all of its dependencies on its own.
You only need the npm install command when you checked out an Application with a package.json-File to install the APPLICATIONS Dependencies.
If you want to upgrade ALL global packages, you should use:
npm update -g

db-mysql installation error using npm

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!

Resources