我正在尝试全局安装nodemon,但我收到了附图中提到的警告。可能是因为警告,我无法运行nodemon。 我的package.json
{
"name": "learn",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"author": "himanshu",
"license": "ISC",
"dependencies": {
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.17.2",
"express": "^4.15.4",
"mongoose": "^4.11.7",
"morgan": "^1.8.2"
}
}
最佳答案
我已将 C:\Users\username\AppData\Roaming\npm
添加到系统的环境变量中,它解决了我的问题。
关于javascript - “nodemon”不被识别为内部或外部命令、可操作程序或批处理文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45732800/