我正在尝试全局安装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"
}
}
答案 0 :(得分:2)
我在系统的环境变量中添加了C:\Users\username\AppData\Roaming\npm
,它解决了我的问题。