Does Phoenix still use npm?

Getting a slew of errors when running npm install.

Is npm install necessary given mix’s management of dependencies? Perhaps I’m not understanding npm’s role.

Would appreciate clarity on whether npm is still used so I can continue troubleshooting.

Thanks

If you are using a more recent version of Phoenix, then no.
A couple of versions ago, it was replaced by esbuild.
If you need extra packages for your app, check out Asset Management — Phoenix v1.7.14

2 Likes

The core team moved away from bundling webpack(?) configs to a more deterministic way with esbuild and storing third party javascript in /assets/vendor.

I prefer to use npm to manage my js dependencies, rather than putting the third party js in /assests/vendor, and leave esbuild to do the building.

1 Like