0
votes

nodemon : The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

just trying to install nodemon globally but it is not recognizing..... ( node install nodemon-g )in terminal.enter image description here

1
Try sudo npm install -g nodemon :DJervz09
i'm using windows vscode :DVicky grk

1 Answers

0
votes

Edit:

If the below steps do not work for you, check this answer as nodemon might not be added to the PATH after installation.


Nodemon is a Node Package that is managed by the Node Package Manager (NPM).

To install Node Packages, you need to use the following command,

npm i package-name    // This will install the package locally as a dependency
npm i -D package-name // This will install the package locally as a dev dependency
npm i -g package-name // This will install the package globally

And so, to install nodemon globally, you would do,

npm i -g nodemon      // For Windows or if you installed NodeJS using NVM on linux
sudo npm i -g nodemon // If you installed NodeJS from from apt or other linux package manager.

node install whatever is not a command and obviously won't work.