[error] npm run dev error

배수현·2022년 5월 31일

vue-error

목록 보기
1/1

https://jae04099.tistory.com/entry/ERROR-npm-ERR-code-ELIFECYCLE-errno-1

이전프로젝트 캐시가 남아서 문제가 생기는거 같음
위 링크 참고해서 아래처럼 하면 해결됐다.

코드를 'vite'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는
배치 파일이 아닙니다.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test1@0.0.0 dev: `vite`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test1@0.0.0 dev 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!     C:\Users\Admin\AppData\Roaming\npm-cache\_logs\2022-05-31T01_39_29_541Z-debug.log

Admin@DESKTOP-G0GSSQP MINGW64 /d/study/vue_study/auth-test/test1
$ npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.

Admin@DESKTOP-G0GSSQP MINGW64 /d/study/vue_study/auth-test/test1
$ npm install입력하세요
profile
Web Front-end developer

0개의 댓글