'nodemon'不被识别为内部或外部命令,可操作程序或批处理文件

时间:2017-08-17 10:34:31

标签: javascript node.js angular nodemon

我正在尝试全局安装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"
  }
 }

enter image description here

1 个答案:

答案 0 :(得分:2)

我在系统的环境变量中添加了C:\Users\username\AppData\Roaming\npm,它解决了我的问题。