Herokuで「デプロイ」しようとし、このようなコマンドを打つとこんなエラーが出ます。
push コマンド
git push heroku master
エラー内容
Counting objects: 45, done. Compressing objects: 100% (25/25), done. Writing objects: 100% (45/45), 9.06 KiB | 0 bytes/s, done. Total 45 (delta 20), reused 36 (delta 18) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG_LOGLEVEL=error remote: NPM_CONFIG_PRODUCTION=true remote: NODE_VERBOSE=false remote: NODE_ENV=production remote: NODE_MODULES_CACHE=true remote: remote: -----> Installing binaries remote: engines.node (package.json): 4.2.3 remote: engines.npm (package.json): unspecified (use default) remote: remote: Resolving node version 4.2.3... remote: Downloading and installing node 4.2.3... remote: Detected package-lock.json: defaulting npm to version 5.x.x remote: Bootstrapping npm 5.x.x (replacing 2.14.7)... remote: ERROR: npm is known not to run on Node.js v4.2.3 remote: Node.js 4 is supported but the specific version you're running has remote: a bug known to break npm. Please update to at least 4.7.0 to use this remote: version of npm. You can find the latest release of Node.js at https://nodejs.org/ remote: npm installed remote: ERROR: npm is known not to run on Node.js v4.2.3 remote: Node.js 4 is supported but the specific version you're running has remote: a bug known to break npm. Please update to at least 4.7.0 to use this remote: version of npm. You can find the latest release of Node.js at https://nodejs.org/ remote: ERROR: npm is known not to run on Node.js v4.2.3 remote: Node.js 4 is supported but the specific version you're running has remote: a bug known to break npm. Please update to at least 4.7.0 to use this remote: version of npm. You can find the latest release of Node.js at https://nodejs.org/ remote: /app/tmp/buildpacks/19862b8792e84bd8421ded4660b92dfd1c41d92e19ac0b38c90301adc8ae3e0bd512fa01998af18fc2f0d31a157e9c82e8fdceba1a05e5d29adb8dc2bfaf08e1/lib/failure.sh: line 296: [: : integer expression expected remote: remote: -----> Restoring cache remote: Skipping cache restore (not-found) remote: remote: -----> Building dependencies remote: Installing node modules (package.json + package-lock) remote: ERROR: npm is known not to run on Node.js v4.2.3 remote: Node.js 4 is supported but the specific version you're running has remote: a bug known to break npm. Please update to at least 4.7.0 to use this remote: version of npm. You can find the latest release of Node.js at https://nodejs.org/ remote: remote: -----> Build failed remote: remote: We're sorry this build is failing! You can troubleshoot common issues here: remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys remote: remote: If you're stuck, please submit a ticket so we can help: remote: https://help.heroku.com/ remote: remote: Love, remote: Heroku remote: remote: ! Push rejected, failed to compile Node.js app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to immense-refuge-84970. remote: To https://git.heroku.com/immense-refuge-84970.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/immense-refuge-84970.git'
一体、このエラーはどういうことなのででょうか?
回答1件
あなたの回答
tips
プレビュー