React Error: Failed at the xxx@0.1.0 start script 'react-scripts start'.
2023-06-13 09:13:00 时间
错误细节
npm ERR! Ubuntu 16.0.4
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.7.0
npm ERR! npm v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! UpScore@0.6.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the UpScore@0.6.0 start script 'react-scripts start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the UpScore package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! react-scripts start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs UpScore
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls UpScore
npm ERR! There is likely additional logging output above.
Solution
应该就是react-scripts
没有安装成 global 的
解决方式很简单:
npm install -g npm@latest
to update npm because it is sometimes buggy.rm -rf node_modules
to remove the existing modules.npm install
to re-install the project dependencies.
参考文献
相关文章
- React saga_react获取子组件ref
- Redirecting to /bin/systemctl start mysqld.service Failed to start mysqld.service: Unit not found.
- react的jsx和React.createElement是什么关系?面试常问5
- 解决:windows下php curl https时 SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:
- react 基础之组件篇二——Style in React
- ORA-01994: GRANT failed: password file missing or disabled ORACLE 报错 故障修复 远程处理
- ORA-27218: failed to read ACFS mirror ORACLE 报错 故障修复 远程处理
- ORA-28394: decryption of data of length string failed ORACLE 报错 故障修复 远程处理
- ORA-29273: HTTP request failed ORACLE 报错 故障修复 远程处理
- ORA-29875: failed in the execution of the ODCIINDEXINSERT routine ORACLE 报错 故障修复 远程处理
- ORA-41109: Updating system alert with reason_id string failed; previous alert not found ORACLE 报错 故障修复 远程处理
- ORA-02777: Stat failed on log directory ORACLE 报错 故障修复 远程处理
- ORA-02804: Allocation of memory failed for log file name ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-011414; Symbol: ER_KEYRING_ENCRYPTED_FILE_GEN_KEY_FAILED_DUE_TO_INTERNAL_ERROR; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-011424; Symbol: ER_KEYRING_AWS_FAILED_TO_INIT_DUE_TO_INTERNAL_ERROR; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-011429; Symbol: ER_KEYRING_AWS_FAILED_TO_INIT_DUE_TO_PLUGIN_INTERNAL_ERROR; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-13184: failed to initialize tessellation package ORACLE 报错 故障修复 远程处理
- ORA-13516: AWR Operation failed: string ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-013704; Symbol: ER_FIREWALL_UDF_REGISTER_FAILED; SQLSTATE: HY000 报错 故障修复 远程处理
- React 许可证虽严苛,但不必过度 react