leeda-cloud

Npm ERR code EJSONPARSE Failed to parse json 에러 해결법 본문

에러

Npm ERR code EJSONPARSE Failed to parse json 에러 해결법

leeda-cloud 2023. 11. 8. 18:17

새로운 환경에서 이것,저것 테스트 중 Npm ERR code EJSONPARSE Failed to parse json 에러가 발생했다. 

 

이건 또 왜... 하고 찾아보니 역시  package.json!

package.json에 불필요한 내용이나 콤마가 들어가면 발생한다고 한다. 

필요없는 ','를 지운 후 실행해보니 멀쩡히 작동했다.

 

참고 url : https://stackoverflow.com/questions/43215789/npm-err-code-ejsonparse-failed-to-parse-json

 

Npm ERR code EJSONPARSE - Failed to parse json

So I was just about to setup this login form for my page using node.js I ran npm init and went trough the various steps to complete it. When I was all done with that, and the package.json file ...

stackoverflow.com

 

Comments