Specify NPM version?

I have a node app deployed and it uses the latest LTS version of node by default. I would like it to run npm version 7 instead of 6 since it is faster. Is there a way to specify which version of npm is used?

Hey Jon,

We don’t currently support this using our native Node environment. You’ll need to use your own Dockerfile to install a different NPM version.

We also needed to use npm 7.

Instead of switching to a Dockerfile you can do the following:

Add an environment variable SKIP_INSTALL_DEPS=true (not documented yet on render doc as I understand)

In your build command: npm install npm && npx npm ci


1 Like