I just upgrade my Mac to Catalina.
When I do jhipster import-jdl Model.jdl
It gives
zsh: command not found: jhipster Catalina Mac
What do I have to do?
I don't have a ~/.zshrc file.
Do I have to create it and add the path?
I just reinstalled jhispter
sudo npm install -g generator-jhipster
and is working!
Related
OS: Manjaro
I installed npm and nodejs by this command: sudo pacman -S nodejs npm
after installation i have an error:
~]$ npm -v
node: error while loading shared libraries: libicui18n.so.67: cannot open shared object file: No such file or directory
~]$ node --version
node: error while loading shared libraries: libicui18n.so.67: cannot open shared object file: No such file or directory
How can i solve this problem?
Install nvm (Node Version Manager)
yay -S nvm
Load nvm
source /usr/share/nvm/init-nvm.sh
You can also add the above line in your environment file such as .bashrc so you won’t have to do it every time.
Install Node.js and npm
nvm -g install npm
Test your setup – open a new terminal and install a package using npm
$ nvm use stable
$ nvm -g install browser-sync
$ browser-sync start --server
I found that you need to install both nodejs and npm from the package manager. If you first install npm however, node is automatically installed as a dependency.
yay -S npm
Installing:
pamac install nodejs
pacman -S nodejs
refer : https://discover.manjaro.org/packages/nodejs
I'm very new to this. Back in January 2018 when I installed Homebrew and Nodejs, commands were found. I uninstalled and reinstalled both yesterday along with a mac OSX update. Now neither brew nor node commands are found.
user$ node
-bash: node: command not found
user$ brew doctor
-bash: brew: command not found
I've checked through Finder that they are both installed.
Thanks in advance to anyone who can help.
So, lately i checked my npm version and got this error message:
Yogies-MacBook-Pro:bin yogieputra$ node --version
v0.12.7
Yogies-MacBook-Pro:bin yogieputra$ npm --version
-bash: /usr/local/bin/npm: No such file or directory
Yogies-MacBook-Pro:bin yogieputra$ brew install npm
Warning: node-0.12.7_1 already installed, it's just not linked
Anyone know how to fix this issue?
Run brew link nodeor brew doctor.
You could need sudo so sudo brew link node
To link already installed node, run following command:
brew link homebrew/versions/node012
For further explanation, you can go through this.
I'm new to this. I would like to use Grunt to run do some image optimalization. But I can't get it installed for some reason.
I've installed Homebrew by copying this in terminal:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I've also installed node on my system (by downloading the .pkg and installing it).
When I check if Homebrew and Node are installed I get this:
Joost:~ jvd$ which brew
/usr/local/bin/brew
Joost:~ jvd$ which node
/usr/local/bin/node
When I try to install Grunt by using this code: npm install -g grunt-cli i get (also when I use $ sudo)
Joost:~ jvd$ npm install -g grunt-cli
-bash: npm: command not found
Same goes for: npm update -g npm.
Like I said Im fairly new to this so most of the things I just searched on the web. But can't figure this out. Does somebody know what is wrong?
Thanks!
Joost
This worked for me a couple weeks ago:
$ brew update
$ brew uninstall node
$ brew install node
$ sudo brew postinstall node
Might have to use sudo if you get any access errors. Sometimes installing node through homebrew causes errors. So another alternative would be to uninstall it and download the node.js package and install it yourself without homebrew.
I am trying to remove the package download of npm and node that I installed to install them with Homebrew instead. However I am having great difficulty in doing this. How can I get the package version of node.js and npm totally removed from my Mac so I can install the Homebrew version?
Note: I have tried sudo npm rm --global node however I get the error sudo: npm: command not found
check the link below for uninstalling node/npm
How do I uninstall nodejs installed from pkg (Mac OS X)?
and the brew error is happening due to permmision issue.
Since brew basically don't allow to be executed with sudo so change the directory permission before brew command.
changing permission:
sudo chown -R $USER:admin /usr/local
brew link command:
brew link node
and then you can use npm or node commands.