我在Angular Broject中工作,而NPM Run服务器不起作用
(c)Microsoft Corporation。版权所有。
c:\ users \ home> cd 3-services 系统找不到指定的路径。
c:\ users \ home> cd 3-services
c:\ users \ home \ home \ 3-services> cd 3-services
c:\ users \ home \ home \ 3-services \ 3-services \ 3-services> npm Run Server
'。不公认为内部或外部命令, 可操作的程序或批处理文件。
C:\ Users \ Home \ 3-Services \ 3-Services>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在PC的环境中设置NodeJS路径。
搜索Windows搜索中的环境变量
编辑系统环境变量”选项将在结果中弹出
nodejs bin路径IE在我的计算机中安装在
中
中,一旦添加单击“确定”,然后关闭
,您可以在提示或PowerShell中写下命令。
有时需要重新启动PC。
Set the nodejs path in environment of your PC.
Search for Environment Variables in the Windows search
Edit the System environment variables" option will be popped in the result
Open that, select the "Path" and click on edit, then click "New" add your
nodeJS Bin path i.e in my machine its installed in
Once you added click "Ok" then close
Now you can write your command in prompt or PowerShell.
Sometime it's required to restart the PC.