개발자 되기 part1/Error
[npm] npm WARN saveError ENOENT: no such file or directory, open...
Developer J
2020. 8. 25. 10:03
반응형
발생 상황
cmd창에서 npm install winston --save를 할 때 발생했다.
%npm install [모듈]과 같은 명령어 실행 시 발생되는 에러
핵심 문장
no such file or directory~~package.json
해결 방법
npm을 사용하기 전 "npm init"을 실행해준다.
C:\Users\JSH\brackets-nodejs\NodeExample1>npm init
This utility will walk you through creating a package.json file.
아래는 cmd 창의 화면이다.
Keywords와 같이 작성하라고 나오는 것들은 Enter키를 눌러 넘겨주면 된다.
그 후, 다시 원하던 npm install [모듈]을 진행하면 작업이 error 없이 완료된다.
반응형