【发布时间】:2021-07-13 20:00:01
【问题描述】:
我正在尝试运行 nodemon,但是当我这样做时,它给了我以下错误:
nodemon : File C:\Users\dyzha\AppData\Roaming\npm\nodemon.ps1 cannot
be loaded because running scripts is disabled on this system. For
more information, see about_Execution_Policies at
https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ nodemon app.js
+ ~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityExcep
tion
+ FullyQualifiedErrorId : UnauthorizedAccess
我已经尝试卸载它并重新安装它,npm install -g nodemon 和 npm install nodemon --save-dev。
【问题讨论】:
-
您尝试阅读链接了吗?
-
stackoverflow.com/questions/4037939/…。你可以试试这个吗?
-
我不是 Windows 专家,但我可以以管理员身份运行终端吗?
标签: javascript nodemon