0
Hello, I wonder if you have someone with the same problem or something similar
I ran this code sudo npm install nodemon
and returned this to me
/Users/apple/.npm-global/bin/nodemon -> /Users/apple/.npm-global/lib/node_modules/nodemon/bin/nodemon.js
[email protected] postinstall /Users/apple/.npm-global/lib/node_modules/nodemon
node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective
https://opencollective.com/nodemon/donate
[email protected]
Apparently, the nodemon
was installed normally, but when I run the nodemon
he appears -bash: nodemon: command not found
I don’t know what to do, I tried to put nodemon in the node_modules directory, I tried to put -g (globalmente)
, but nothing works
I’m on a Macbook Air 10.15.2 macOS Catalina
If you write
node /Users/apple/.npm-global/lib/node_modules/nodemon/bin/nodemon
he runs?– Sergio
The
nodemon
only works with--save-dev
, is in the page README and npmjs.org of them and if it is to install global it will be using sudo and withsudo npm i -g nodemon
... still if it is global and did everything right and does not work then it is likely that no CLI package will work and that you are having trouble in your~/.bashrc
– Guilherme Nascimento