Bower Install - Illegal instruction (core dumped) - node.js

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.

Related

Npm install issue HOMEBREW

This is the error I got:
npm install error 3097 error command sh -c node scripts/build.js 3098 error Building: /opt/homebrew/Cellar/node/16.5.0/bin/node
I just switched to Mac from Windows and cloned my repo. Tried to run npm install to install the packages for my react app and got this error.
I installed node with homebrew.
The issue seemed to be related with installing node with home brew. As a quick and easy fix I just ran brew uninstall node and then went to the nodejs website and installed it for mac manually. This took care of the issues and I was able to install my packages successfully.

Cannot Install Npx

I am getting a strange error when trying to install npx. I have node, but it says I don't.
➜ Desktop brew install npm
Warning: node 14.4.0 is already installed and up-to-date
To reinstall 14.4.0, run `brew reinstall node`
➜ Desktop npm install -g npx
zsh: command not found: npm
Why is that happening?
npx is pre-bundled with npm .no need to install npx. if u want to start a new react project (I presume)give npx create-react-app project name given that you installed the latest node version.

Install angular on mac

I'm trying to install Angular on macOS. I have npm 5.6.0 and node 8.11.1 installed. I tried sudo npm install -g #angular/cli, which seems to install it. However, when I type ng --version, I get:
Unknown error: ReferenceError: Invalid left-hand side in assignment
Edit: I also tried this, to no effect:
npm uninstall -g angular-cli
npm cache clean or npm cache verify (if npm > 5)
npm install -g #angular/cli#latest
You can use the macOS package manager. In your terminal type:
brew install angular-cli
To confirm your version:
ng --version
I think the best way to install angular on mac is using brew.
1.) Install brew, by typing the following command on your terminal :-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2.) After Installing brew, then run following command :-
brew install angular-cli
After Installation, you'll see angular is successfully installed.
To check, Type Command :-
ng version
Delete npm and node, then install them via brew (works perfect on mac os).
See https://brew.sh/

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

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.

Just install Node 0.12.0 and giving an error once I type 'npm'

I am trying to install NodeJS 0.12.0, I am using nvm
rm -rf www/lib
npm cache clear
npm installl
nvm install 0.12.0
everything was fine until, then I did:
mretana#mretana:~/Documents/Projects/capilleiraclickandgamblemobile$ nvm install 0.12.0
v0.12.0 is already installed.
Now using node v0.12.0
I thought: Ok, I have node 0.12.0 running, but then I entered npm on the console and I got this:
bash: /home/mretana/.nvm/versions/v0.12.0/bin/npm: /home/mretana/.nvm/versions/v0.12.0/bin/node: bad interpreter: Permission denied

Resources