Reactjs 在本地设置react js项目后,会出现如下错误
设置本地CRA项目后发生此错误: unova@0.1.0开始/主页/abc/桌面/阿曼/esp/项目 反应脚本启动Reactjs 在本地设置react js项目后,会出现如下错误,reactjs,Reactjs,设置本地CRA项目后发生此错误: unova@0.1.0开始/主页/abc/桌面/阿曼/esp/项目 反应脚本启动 module.js:487 犯错误; ^ 错误:找不到模块“../scripts/start” 位于Function.Module.\u解析文件名(Module.js:485:15) 在Function.resolve(内部/module.js:18:19) 反对。(/home/abc/Desktop/aman/esp/project/node_modules/.bin/react
module.js:487
犯错误;
^
错误:找不到模块“../scripts/start”
位于Function.Module.\u解析文件名(Module.js:485:15)
在Function.resolve(内部/module.js:18:19)
反对。(/home/abc/Desktop/aman/esp/project/node_modules/.bin/react脚本:35:25)
在模块处编译(Module.js:569:30)
在Object.Module.\u extensions..js(Module.js:580:10)
在Module.load(Module.js:503:32)
在tryModuleLoad时(module.js:466:12)
在Function.Module.\u加载(Module.js:458:3)
位于Function.Module.runMain(Module.js:605:10)
启动时(bootstrap_node.js:158:16)
npm错误!代码失效循环
npm错误!错误1
npm错误!unova@0.1.0开始:`react脚本开始`
npm错误!退出状态1
npm错误!
npm错误!失败unova@0.1.0开始脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!此运行的完整日志可在以下位置找到:
npm错误/home/abc/.npm/_logs/2020-01-15T06_39_05_439Z-debug.log
您使用的是哪个版本的react脚本,请告诉我react脚本-v0.9.5
module.js:487
throw err;
^
Error: Cannot find module '../scripts/start'
at Function.Module._resolveFilename (module.js:485:15)
at Function.resolve (internal/module.js:18:19)
at Object.<anonymous> (/home/abc/Desktop/aman/esp/project/node_modules/.bin/react-scripts:35:25)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! unova@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the unova@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/abc/.npm/_logs/2020-01-15T06_39_05_439Z-debug.log