[英]error deploying in heroku, rejected error
救救我吧!!! 我無法將 mi mean stack app 部署到 heroku
帶有代碼的 mi git 存儲庫:
https://github.com/blinkking349/meanstack
錯誤日志:
-----> Build
Running heroku-postbuild
> meanapp@1.0.0 heroku-postbuild /tmp/build_9dad4ae1_
> NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "~4.0.2,": Tags may not have any characters that encodeURIComponent encodes.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.3rpWs/_logs/2020-10-18T02_45_15_324Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meanapp@1.0.0 heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the meanapp@1.0.0 heroku-postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/npmcache.3rpWs/_logs/2020-10-18T02_45_15_340Z-debug.log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
錯誤消息說:
Invalid tag name "~4.0.2,"
看起來您在客戶端目錄中的 TypeScript 版本字符串中包含了一個逗號:
"typescript": "~4.0.2,"
擺脫它:
"typescript": "~4.0.2"
然后提交並重新部署。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.