gpt4 book ai didi

node.js - nodemon 在 Windows 10 中不起作用

转载 作者:行者123 更新时间:2023-12-03 12:16:12 24 4
gpt4 key购买 nike

我在本地机器上成功安装了 nodemon,但是当我运行代码时它给了我以下错误消息。
这是错误详细信息

The term 'nodemon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ nodemon
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (nodemon:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

最佳答案

我遇到了同样的问题,简单的修复首先检查路径是否存在于您的环境变量路径中

去检查

控制面板>系统>高级系统设置>环境变量>双击PATH

现在检查你是否有这个 PATH C:\用户\您的用户名\AppData\Roaming\npm

如果没有,你会看到一些现有的路径,只需附加到它用分号分隔。就是这样!为我工作。

添加路径 C:\用户\您的用户名\AppData\Roaming\npm 在环境变量路径中

关于node.js - nodemon 在 Windows 10 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51174950/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com