custom npm install command
hey yall! i had a question about custom npm installations: it doesnt seem like that is yet available in your ui? maybe im looking in the wrong place but would love some help! thanks!
13 Replies
Project ID:
5b02d386-c049-460c-bcf9-d7235c54b6f9
5b02d386-c049-460c-bcf9-d7235c54b6f9
so by default it should be
npm ci
if there's a package lock file, otherwise it's npm i
can you tell me why these install commands don't work for you?i got this resolved, thanks
would you mind telling me anyway? what was your desired install command?
npm i --force
oh that's not a good idea
but I'm not gonna open that can of worms
its due to some of the dependencies im working with. plus i believe in the newest npm versions,
--force
is better than --legacy-peer-deps
neither is good lol
Hi, I know --force is not a good idea, but I need to use it. How can I add
npm i --force
as a custom install script?with a nixpacks.toml file -
Thanks Brody, I dug a bit deeper and I found this in the forum:
yep, thats the correct way, but you said you where aware it wasnt a good idea and asked anyway, so i answered your question directly