How to add npm install --progress=false --force in clouldflare page code deploy?
I have an angular project and planing to switch to pages from aws s3. I want to run --force instead of npm install --progress=false. Please help.
3 Replies
Found a thread but it doesn't seems to working:
https://community.cloudflare.com/t/how-to-do-npm-install-force/401235
The pipeline by defaults add:
Installing project dependencies: npm install --progress=false
Which is a problem for me. I don't if I am doing anything wrong. The project is complex so fixing it is tedious and time taking task.
Please help
I've successfully resolved the issue and I'm sharing this solution to assist fellow developers!
As I couldn't find a direct method to execute 'npm i --force' within Cloudflare Pages, I was able to make it work by leveraging the 'https://github.com/cloudflare/pages-action' GitHub action.
I initially attempted an alternative solution using 'https://github.com/marketplace/actions/deploy-to-cloudflare-workers-with-wrangler', but unfortunately, it didn't yield the desired results.