Strapi + Heroku部署失败:npm ERR!代码EINVALIDTAGNAME

目标:

要将我的Stradi服务器部署到heroku,这样我就可以拥有一个无头CMS。

错误:

remote: -----> Installing dependencies
remote:        Installing node modules (package.json + package-lock)
remote:        npm ERR! code EINVALIDTAGNAME
remote:        npm ERR! Invalid tag name "^cd s": Tags may not have any characters that encodeURIComponent encodes.
remote:        
remote:        npm ERR! A complete log of this run can be found in:
remote:        npm ERR!     /tmp/npmcache.1tJNV/_logs/2019-11-19T14_12_00_784Z-debug.log
remote: 
remote: -----> Build failed

系统:

  • Node.js版本:12.13.0
  • NPM版本:6.12.0
  • Strapi版本:3.0.0-beta.17.4
  • 数据库:MongoDB地图集云
  • 操作系统:LinuxMint 19.2 Cinnamon
  • 前端:React 16.11.0

我已经尝试过:

Strapi heroku deployment guide

Heroku trouble shooting

问题:

现在我没有足够的试验来尝试...我该怎么办?

beachboyll 回答:Strapi + Heroku部署失败:npm ERR!代码EINVALIDTAGNAME

由于某种原因,heroku与我的react项目文件夹中的服务器文件夹存在git冲突。我将我的bandi服务器文件夹移到了git init的外面,然后再次部署,这一次可以正常工作了。

更新:我也发现了错误,它是在我对stripi的依赖中的react package.json文件中。我不知道那是怎么结束的!

本文链接:https://www.f2er.com/3072730.html

大家都在问