【发布时间】:2017-03-14 13:31:57
【问题描述】:
我正在从https://scotch.io/tutorials/authenticate-a-node-js-api-with-json-web-tokens 进行 node.js 服务器设置。我是 node.js 的新手。我正在安装npm install nodemon --save。但是当我用这个nodemon server.js 运行服务器时。
在终端显示:
nodemon 未被识别为内部或外部命令,可运行 程序或批处理文件
node server.js 命令有效并启动了服务器,但nodemon 命令无效。
我是从https://scotch.io/tutorials/authenticate-a-node-js-api-with-json-web-tokens视频设置节点js服务器的。
我不知道为什么它不起作用我已经尝试了一些安装 nodemon 的命令。
npm install -g nodemon
npm install -g nodemon --save
npm install --save-dev nodemon
npm install -g nodemon@debug
npm install -g --force nodemon
我看到了一个链接I can´t install nodemon globally, "nodemon" not recognized,但是由于我的项目位置在D盘,我不知道如何设置路径。
我想运行nodemon server.js。如果有人有想法,请分享。提前致谢。
【问题讨论】:
标签: javascript node.js nodemon