[英]Can someone please help me with this React start?
I have downloaded some code from Github which uses React.我已经从 Github 下载了一些使用 React 的代码。
I get the following error when I run npm start in the terminal.在终端中运行 npm start 时出现以下错误。
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
apples-iMac:redux-code-master apple$ npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/apple/Documents/redux-code-master/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/apple/Documents/redux-code-master/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2020-10-23T14_20_03_880Z-debug.log
apples-iMac:redux-code-master apple$
Can anyone please tell me how to overcome this issue?谁能告诉我如何克服这个问题?
From your error log it seems package.json
file is missing from your project.从您的错误日志看来,您的项目中缺少
package.json
文件。 If it exist and you want to build project for relative path then use如果它存在并且您想为相对路径构建项目,则使用
"homepage": "http://mywebsite.com/relativepath",
in your package.json file.在您的package.json文件中。 Find more about building for relative path at here
在此处查找有关构建相对路径的更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.