기억 저장소

클라우드 기반 인공지능 개발과 DevOps 실무

카테고리 없음

서버리스 : verify that the package.json has a valid "main" entry

하늘.98 2022. 3. 17. 18:11

이 방법을 했을 경우 문제 없이 잘 되었다. 

 

서버리스 deploy 하는 경우 생기는 오류이다. 

아래 나와있는것들을 삭제해보자 

 

1. node_modules 및 package-lock.json 삭제

2. 명령줄에 NPM I을 입력하면 패키지가 다시 다운로드됩니다.  

  3. 다시 확인하고 오류가 보고되지 않음

https://stackoverflow.com/questions/64755386/npm-error-verify-that-the-package-json-has-a-valid-main-entry

 

npm error - verify that the package.json has a valid "main" entry

Im playing around with a simple trading bot using binance and cctx when i run my script with node index.js i get this long error: internal/modules/cjs/loader.js:323 throw err; ^ Error:

stackoverflow.com