Kri*_*ina 1 node.js npm nvm reactjs azure-web-app-service
运行我从 GitHub 克隆的 Azure 静态 Web 应用程序时遇到一些问题。尝试遵循以下说明:https://learn.microsoft.com/en-us/azure/static-web-apps/local-development。我收到错误:sh: 1: react-scripts: not found运行后npm run build。
在主项目文件夹中我运行了以下命令:
npm install -g @azure/static-web-apps-cli
Run Code Online (Sandbox Code Playgroud)
added 198 packages, and audited 199 packages in 31s
32 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Run Code Online (Sandbox Code Playgroud)
然:
npm run build
Run Code Online (Sandbox Code Playgroud)
> hello@0.1.0 build
> react-scripts build
sh: 1: react-scripts: not found
Run Code Online (Sandbox Code Playgroud)
“sh:1:react-scripts:找不到是什么意思”?我该如何修复它?
npm --version
8.1.0
node --version
v16.13.0
nvm --version
0.39.0
node --version
v16.13.0
Run Code Online (Sandbox Code Playgroud)
(我意识到我可能没有包含理解问题所需的所有必要信息,所以请告诉我您还需要了解什么。)
| 归档时间: |
|
| 查看次数: |
7426 次 |
| 最近记录: |