Annie
Annie

Reputation: 395

Strapi + Heroku deployment failed:npm ERR! code EINVALIDTAGNAME

Goal:

To have my strapi server deployed to heroku, so I can have a headless 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

Heroku trouble shooting

Question:

Now I ran out of trials to experiment with...what can I do?

Upvotes: 0

Views: 403

Answers (1)

Annie
Annie

Reputation: 395

For some reason, heroku has git conflict with my server folder which is inside my react project folder. I moved my strapi server folder outside and git init and deployed again, this time it works.

UPDATE: I also found the error, it was in my react package.json file in the dependencies for strapi. I have no idea how that ended up there!

Upvotes: 0

Related Questions