클라우드/클라우드 프로젝트
[프로젝트] npm start 에러
공쓰기
2022. 8. 20. 15:15
에러내용
> ui@0.1.0 start /home/seul/project/destiny/gateway/ui
> cross-env NODE_PATH=src react-scripts start
sh: 1: cross-env: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! ui@0.1.0 start: `cross-env NODE_PATH=src react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ui@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! /root/.npm/_logs/2022-08-17T04_48_33_872Z-debug.log
버전확인
버전이 낮아서 발생하는 것이므로 버전을 높여준다
해결방법
npm i -g n
n lts