[npm] npm install 에러

다시보려고 쓰기·2022년 2월 17일
1
post-thumbnail

이미 npm 이 설치되어있고,
npm install, npm i 또는 npm ci 명령어를 입력했을 때, 아래와 같은 에러가 발생하면

에러 메시지

npm ERR! code E404
npm ERR! 404 Object Not Found - GET https://skimdb.npmjs.com/registry/cryto-js - not_found
npm ERR! 404
npm ERR! 404  'cryto-js@^3.1.9-1' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

해결

package-lock.json 을 삭제하고

Terminal 에

npm clear clean --force
npm i --package-lock-only

입력하면

package-lock.json 이 다시 생기고 더이상 에러가 발생하지 않는다. 그리고 명령어도 실행이 잘 된다! 😄

0개의 댓글