node.js - 从 github 拉取后,npm 开发服务器将无法启动

标签 node.js reactjs github

嗨,我刚刚从 GitHub 用户克隆了我的项目,现在 npm start 不会启动开发服务器... 它发送此错误:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! airlines@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the airlines@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

也许我必须从 package.json 安装依赖项? 我该怎么办?

最佳答案

依赖项尚未安装。运行npm install来安装依赖项,然后就可以运行npm start

关于node.js - 从 github 拉取后,npm 开发服务器将无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59184919/

相关文章:

node.js - 如何在 DynamoDb 描述表中使用 waitUntilTableNotExists

javascript - 使用键简化对象的设置值

javascript - 如果使用 react 条件为假,如何返回空的 jsx?

ruby-on-rails - 致命 : could not read Username for 'https://github.com' : No such device or address

github - 公开私有(private) repo 贡献历史

python - 高效地从 PyGithub 获取最新的 Commit URL

node.js - 我可以在一个域下上传多个node.js应用程序吗?

node.js - 错误 : listen EACCES on Openshift app

node.js - Websocket 431 错误 : Unexpected server response

javascript - 我如何使用 React 使用嵌套 json 创建树表类型的结构