reactjs - npm start 处理 react 和 next .js 的问题
问题描述
我刚刚从 GitHub 存储库中克隆了代码。我尝试使用以下命令运行它
'next' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nextjs@0.1.0 start: `next start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nextjs@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?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL\AppData\Roaming\npm-cache\_logs\2021-10-12T12_27_53_876Z-debug.log
PS F:\REACT\projectnamme> node -v
v12.16.1
PS F:\REACT\projectnamme> npm -v
6.13.4
F:\REACT\projectnamme> create-react-app --version
3.4.1
解决方案
首先,你需要下载你的 node_modules
你可以使用npm install
或yarn install
然后在您的终端中执行npm start
或yarn start
推荐阅读
- python-3.x - Pytorch:加载 ResNet50 模型时转储非法指令核心
- docker - 在 docker 日志中打印 logger.Debug 语句
- reactjs - 如何从axios发帖表达
- javascript - Sailsjs+Canvas 将图像发送到视图中
- sql-server - 用作 xml 路径时,箭头(-->)不会显示在 SQL Server SELECT 中
- git - GitHub 和 GitLab 是否支持 git clone 的 --filter 参数?
- jquery - jquery按类检查/取消选中所有
- laravel - 我可以在不向客户收取 Stripe 费用的情况下添加卡详细信息吗?
- python - 轮廓区域查找
- php - 清空文件夹以将另一个文件放入其中