目标:
要将我的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
系统:
我已经尝试过:
Strapi heroku deployment guide
问题:
现在我没有足够的试验来尝试...我该怎么办?
答案 0 :(得分:0)
由于某种原因,heroku与我的react项目文件夹中的服务器文件夹存在git冲突。我将我的bandi服务器文件夹移到了git init的外面,然后再次部署,这一次可以正常工作了。
更新:我也发现了错误,它是在我对stripi的依赖中的react package.json文件中。我不知道那是怎么结束的!