How do I add the --legacy-peer-deps flag during npm install?

^title
Solution:
for future readers, add this nixpacks.toml file to your project -
[phases.install]
cmds = ['npm ci --legacy-peer-deps']
[phases.install]
cmds = ['npm ci --legacy-peer-deps']
...
Jump to solution
3 Replies
Percy
Percy2w ago
Project ID: N/A
Costin
CostinOP2w ago
nvm, fixed
Solution
Brody
Brody7d ago
for future readers, add this nixpacks.toml file to your project -
[phases.install]
cmds = ['npm ci --legacy-peer-deps']
[phases.install]
cmds = ['npm ci --legacy-peer-deps']
Want results from more Discord servers?
Add your server