简体   繁体   中英

Nodemon command not found issue

I recently update my node.js version and npm and now I am getting a error: $ nodemon C:\Users\username\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found;

I have tried uninstalling and reinstalling, I am pretty new to using nodemon and node. I have searched the previous questions and tried updating my Path variables but so far nothing has worked.

Have you installed nodemon globally or just installed it? If not, try npm install -g nodemon to install it globally.

If uninstalling and then reinstalling of nodemon module did not work, please try npx nodemon script.js . I tried it in my VS Code Git Bash terminal and found it working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM