当前位置: 首页 > 后端技术 > Node.js

NodejsExpress框架安装相关问题

时间:2023-04-03 23:34:23 Node.js

1、E:wwwdemo1>..\node_modules\.bin\express-h信息,请参考https://go.microsoft.com/fwlin中about_Execution位置行...1char:1+..node_modules\.bin\express-h+~~~~~~~~ps1因为这个系统禁止运行脚本。有关详细信息,请字母+CategoryInfo:SecurityError:(:)[],PSSecurityException_Policies。+FullyQualifiedErrorId:UnauthorizedAccess解决方法:1.以管理员身份运行vscode2.执行:get-ExecutionPolicy,显示Restricted,表示状态为禁止3.执行:set-ExecutionPolicyRemoteSigned4.此时执行get-ExecutionPolicy,它显示RemoteSigned完成2.常用安装包npminstallexpress--savenpminstallsequelize--savenpminstallmysql--savenpminstallelasticsearch