0
点赞
收藏
分享

微信扫一扫

【最详细】node.js执行nodemon app.js命令出错

小美人鱼失去的腿 2022-03-12 阅读 49
node.js

nodemon : 无法将“odemon”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ odemon : 无法将“nodemon”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括

当执行nodemon app.js 会报如下命令

首先,先用如下命令进行全局安装

npm install -g nodemon

安装过程中可能也会出现如下错误:

If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:

意思是提醒你的权限不够,然后继续解决问题

打开nodejs的安装目录

鼠标右键点击属性,然后点击安全,然后再点击编辑

 

 选中

 然后全部选中允许

 

 完成之后稍加等待

执行

npm install -g nodemon

然后再次执行nodemon app.js

成功执行。

 

举报

相关推荐

0 条评论