-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 16.x...
Downloading and installing node 16.15.1...
Using default npm version: 8.11.0
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Installing node modules
npm ERR! Invalid Version: ^6.2.0
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.Dqlzx/_logs/2022-06-14T02_49_26_544Z-debug-0.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
- 위에서부터 천천히 읽어보니 node와 npm버전을 인식하지 못해서 자체적으로 16.15.1, 8.11.0버전로 임의 설정하여 진행하다가 발생한 오류라는 생각이 들었다.
"version": "1.0.0",
"description": "",
"engines": {
"node": "16.13.0",
"npm": "8.1.0"
},
깃허브에 push하고, 배포를 진행해보니 정상적으로 배포되었다.