[英]Strapi + Heroku deployment failed:npm ERR! code EINVALIDTAGNAME
Goal:目标:
To have my strapi server deployed to heroku, so I can have a headless CMS.将我的 Strapi 服务器部署到 heroku,这样我就可以拥有一个无头 CMS。
Error:错误:
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
System:系统:
I have tried:我努力了:
Strapi heroku deployment guide Strapi heroku 部署指南
Heroku trouble shooting Heroku故障排除
Question:问题:
Now I ran out of trials to experiment with...what can I do?现在我的试验用完了……我能做什么?
For some reason, heroku has git conflict with my server folder which is inside my react project folder.出于某种原因,heroku 与我的反应项目文件夹中的服务器文件夹有 git 冲突。 I moved my strapi server folder outside and git init and deployed again, this time it works.我将我的strapi服务器文件夹移到外面,git init 并再次部署,这次它可以工作了。
UPDATE: I also found the error, it was in my react package.json file in the dependencies for strapi.更新:我还发现了错误,它在我的反应 package.json 文件中的依赖项中。 I have no idea how that ended up there!我不知道那是怎么结束的!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.