issue with npm updates on ubuntu - node.js

I am using node-v0.10.25 and npm 1.3.24 on ubuntu 12. I am trying to install bower but getting the following error with either of the commands listed below:
npm install bower
npm install -g bower
sudo npm install bower
Error
19560 error code EPEERINVALID
Any ideas on fixing it will be greatly appreciated.

I was thinking of upgrading node and npm (which I will in any case) but using the following works as of now:
sudo npm install -g bower

Related

Npm always showing me npm ERR! when I try to install anything

Please I need your help whenever I try to install anything with npm I always get errors please help me.
Update
From what read from the docs you should install the #ionic/cli
$ npm install -g #ionic/cli
From the docs:
If there was a previous installation of the Ionic CLI, it will need to be uninstalled due to a change in package name.
$ npm uninstall -g ionic
$ npm install -g #ionic/cli
You may want to add debug info while installing e.g.:
$ npm install -dd -g #ionic/cli
From your screenshot not sure if there is an error with your GIT config, or permissions to install the ionic cli globally on your machine...
Outdated
There should not be a space between ionic and #4, you should run e.g.:
npm install -g ionic#4
You can try with command like this npm install -g ionic#{{version}}.
In the place of version you should put your prefered version.

Facing Error in npm install live-server -g? How to resolve i?t

enter image description here
Facing An error while i use npm install live-server -g please give me some idea how to resolve it
Instead of installing it globally install it locally.
First clear the npm chache.
&> npm cache clean --force
Then install it as local package.
$> npm i live-server

Local grunt installation gives error

npm install -g grunt-cli //done successfully
npm install grunt --save --only=dev
gives following error
(node:11000) fs: re-evaluating native module sources is not supported. If
you are using the graceful
-fs module, please update it to a more recent version.
npm WARN prefer global coffee-script#1.10.0 should be installed with -g
project#1.0.0 C:\Users\Live\Desktop\node grunt\final
`-- (empty)
npm WARN project#1.0.0 No repository field.
npm ERR! code 1
Tried uninstalling grunt-cli, cleaning npm cache, then re-installing, but still the problem persists.
Ok short recap:
When in doubt remove your node_modules and install all packages again using npm install
If that didn't work, try updating your npm by executing npm update -g npm and redo step 1.
If that didn't solve your problem, try upgrading to another NodeJS version using nvm or n.

Unable to npm install or start with electron-quick-start

I am using the version of node that is stated on electron's site, which is 7.4.0 and I'm using NPM version 4.0.5 (Windows).
The problem I'm having is with the npm install command in the cloned electron-quick-start folder. I have tried using the command with --save-devand -g but they don't do anything to help.
Upon using just npm install;
fetchMetadeta: still install loadAllDepsIntoIdealTree
With the above stated arguments (output);
--electron-quick-start#1.0.0
Then npm start after the above output;
Pastebin
Any help would be greatly appreciated, thanks.
You must get npm install to work before you can start the app
You could try the following
npm cache clean
npm install This will cache clean of npm
npm install -g yarn
yarn install This will install yarn (This will probably work but it might not be what you're looking for). Yarn is an alternative to npm
npm -g install npm
npm install This will reinstall npm
And I would look into nvm and nvm-windows
And if none of those work I would look at
this issuse on github
And if that doesn't work I would just look at google

Npm install does not work

I have a problem with my npm. This is my error:
I try to uninstall nodejs and install it but my error stays, then I try the command npm install npm, Have the same error and npm -v does not work too.
Try to delete %APPDATA%\npm and reinstall node.
package semver is missing.
running npm install semver and try again

Resources