How do I fix Bower segmentation fault - Eclipse on Windows? - node.js

I am having a consistent problem with bower in Windows - I am running Eclipse Neon and installed the current version of nodeclipse.
npm install works fine but anything to do with bower throws a segmentation fault - npm install -g bower or bower install
What can this be due to?

I was able to resolve this by running
npm cache clean and then executing
npm install -g bower
Now bower install works fine
Leaving this here for others.

Related

npm package getting installed but not working

when I am using command npm install -g lerna it gets executed with no error but after that using command
lerna --version gives output "lerna:command not found".
Possible solution
maybe if somehow I manage it to install in usr/local/lib/node_modules it should work cause other npm packages installed here are working fine but its getting installed in /home/surajkulriya/.npm-global/lib/node_modules.
OS: ubuntu 18.04
which npm:/usr/local/bin/npm
which node:/usr/local/bin/node
which nodejs:/usr/bin/nodejs
Finally after too much effort I sorted out the issue. I removed node nodejs and npm completely and reinstalled them again and used command
npm i -g npm
to fix the broken dependecies.I reinstalled lerna and it worked.

Bower Install - Illegal instruction (core dumped)

I'm trying to install client's app, written in Angular.js and in it's read.me there are following steps:
npm install
bower install
cd electron
npm install
./node_modules/.bin/electron-rebuild
And it should create 'vendors' folder while doing 'bower install' command. By running it, I get this message:
Illegal instruction (core dumped)
I don't know what can cause this problem
Node version: v8.10.0
Npm version: 3.5.2
By doing sudo npm install bower -g I'm getting this output:
/usr/local/bin/bower -> /usr/local/lib/node_modules/bower/bin/bower
/usr/local/lib bower#1.8.4
I had this problem with a very similar setup because I did not have java added to my PATH. After I verified I had java installed (openjdk 1.8.0_171) and added to PATH, the problem disappeared.

NPM Install is not installing dependencies

I'm attempting to install the Ushahidi V3 Client. I've been following the install process up until when I need to build the project from the source repo using npm and gulp - both of which I've had zero experience with. Whenever I run sudo npm install in the project directory, the process runs without complaints. However, when I run npm ls to verify that dependencies have been downloaded, I get a bunch of dependencies listed out as being missing.
How do I get npm to resolve all of these dependencies?
System Details
OS Ubuntu 14.04 (Trusty)
Node JS v0.12.9
NPM v3.5.1
What I've tried
Removing node_modules folder and re-running sudo npm install as referenced in this SO answer for a similar question: npm Gulp dependencies missing, even after running npm install
Uninstalling and reinstalling node and npm
#Strainy, as your research :D
It was a combination of running as sudo and not having the build-essentials.
That's why you should not use sudo npm
Follow these steps:
try npm uninstall. and then try npm install.
Also If it still doesn't work.
Try:
npm install -g npm-install-missing
or
npm-install-missing
For further reading, click here.

Uninstalling bower installed with a different version of npm

I have an Ubuntu 14.04 system. I had installed npm and I installed bower using
sudo npm install -g bower
Some time after that I realized that I was using the node and npm that came fromt he ubuntu repositories, so to use the latest one, I added the repository:
$ sudo add-apt-repository ppa:chris-lea/node.js
and update the packages.
Now I was trying to uninstall bower from the system, but guess what? I get this:
$ sudo npm remove -g bower
npm WARN uninstall not installed in /usr/lib/node_modules: "bower"
So, wait, what? It cant find Bower? So I try to make
which bower
and the output here is:
/usr/local/bin/bower
I dont really understand what is going on. I suspect that I have a problem with different versions of npm and nodejs not playing nice together, since I installed bower with a different version of npm that the one I have installed now. Any idea of how I could uninstall Bower now? (Or at least come back to a clean state, so that I can begin from the beginning?)
sudo npm uninstall bower -g --prefix=/usr/local

bower installed but doesn't install package

I am looking to use yeoman with the generator-marionette.
I am on debian 7
I have installed nodejs v0.10.28 and npm 1.4.9. and
grunt-cli (global)
then i installed bower : npm install -g bower
bower help works fine
bower install gives Nothing (no packages installation, no error message) (bower.json exists)
bower install jquery gives the same result.
Does someone has an idea of what appends and a solution to solve this problem ?

Resources