NPM安装没有CD的文件夹

发布于 2025-01-31 06:20:33 字数 489 浏览 3 评论 0原文

我正在使用Windows PowerShell和管道,以创建我必须部署的应用程序包。

这是我的管道:

我的问题为“ npm install”命令,因为我不想cd cd存储poffage.json的路径。如何指示应执行“ NPM安装”的位置?我尝试了:

“ npm - -prefix c:\ mypath \ application \ clientapp install”,但它返回此错误

I'm using Windows Powershell and a pipeline in order to create the package of the application that I must deploy.

This is my pipeline:
enter image description here

My issue regards the "npm install" command, because I don't want to CD the path where the package.json is stored. How to indicate where the "npm install" should be execute? I tried:

"npm --prefix C:\MyPath\Application\ClientApp install" but it returns this error

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝眼泪 2025-02-07 06:20:34

尝试跑步

npm install --prefix C:\MyPath\Application\ClientApp

Try running

npm install --prefix C:\MyPath\Application\ClientApp
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文