javascript - “nodemon”不被识别为内部或外部命令、可操作程序或批处理文件

标签 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

最佳答案

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

关于javascript - “nodemon”不被识别为内部或外部命令、可操作程序或批处理文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45732800/

相关文章:

javascript - array.push 后数组元素未定义

javascript - Node.js 如何读取一个文件,然后用两个单独的函数写入同一个文件?

javascript - 在 Angular 6 组件中使用外部 js 文件

javascript - JS 和 AJAX Uncaught ReferenceError

javascript - Nativescript http php 请求

javascript - 在 Chrome 中将焦点设置在 iframe 上

node.js - Apollo-Server v2中间件之后如何使用Express中间件?

node.js - 在nodejs中的express-ws模块中调用next()

angular - 有没有办法从 Angular 2+ 中删除未使用的导入和声明?

javascript - 表单内的 viewChild 不会从原始状态触发它