gpt4 book ai didi

azure - 构建失败并显示 'npm' 未被识别为内部或外部命令

转载 作者:行者123 更新时间:2023-12-02 08:03:18 25 4
gpt4 key购买 nike

2018-05-16T10:17:54.9953258Z 'npm' is not recognized as an internal or external command.

2018-05-16T10:17:54.9962710Z operable program or batch file.

2018-05-16T10:17:54.9983767Z C:\Agents\agent\projectsource: error MSB3073: The command "npm install" exited with code 9009.

试图找出这个问题,但没有找到任何关于它的信息,除了这个 Question in MS community

环境:

带有 Angular 5 模板的 Asp Net Core 2.0。

最佳答案

确保您已安装 npmNodeJS。并在系统路径变量和本地用户帐户路径变量中设置nodejs的路径。

尝试以下步骤来解决该问题:

Install npm and bower globally. Open up a command prompt as administrator and type

npm install -g bower

If that doesn’t work, try these steps:

  1. Install NodeJS & npm from https://docs.npmjs.com/getting-started/installing-node
  2. Update to the latest NPM: npm install npm@latest -g
  3. Install bower globally: npm install -g bower

And I needed to install Gulp:

npm install -g gulp

Source here : ‘Exited with code 9009’ publishing .NET Core app to Azure Websites

设置用户变量:

Just add:

;C:\Program Files\nodejs\

To the end of your Path variable on the "User variable" section of the Environment Variables on the System Properties.

Source here: 'npm' is not recognized as internal or external command, operable program or batch file

关于azure - 构建失败并显示 'npm' 未被识别为内部或外部命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50369237/

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