I am trying to build and deploy my
NestJs server app DO “App” platform linking it to it’s github repository.
As any other
NestJs app it has these scripts
"prebuild": "rimraf dist",
"build": "nest build",
Everything was working fine and deployment was successful at first, until suddenly it started failing in the building process giving me the following error.
sh: 1: rimraf: not found
Although I didn’t make any changes to
package.json installing, removing or updating any package. Add to that the
rimraf package is already included as a DevDependency.
And even when I change the
prebuild script to
rm -rf dist instead of
rimraf dist which I don’t prefer. It gives me another error during the build
sh: 1: nest: not found
nest itself is not found. It’s a
NestJs app ??
And BTW everything is working perfectly on local machine, and I am not using docker with that project
I also tried to force rebuild and deploy, and even destroyed the whole app and created it from scratch once again … same errors
I don’t understand why that started happening? and how can I fix that?
wish you can help. Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.