Downgrade node?

Hello, after upgrading to node 9.4 I started having issues with npm and sqlite. I am trying to go back to 8 but it won’t downgrade. Can someone help me with this? Thank you

You can specify the node version you want to use with the engine key in package.json:

{
  "name": "",
  "version": "",
  [...]
  "engines": {
    "node": "8.x" 
  }
}

To see the list of available versions, jump into the console and run npm list.

You’ll be ready to go! :raised_hands:t3:

It is still 9.4, but after doing that and reinstalling node all my issues were fixed. Thank you :slight_smile:

I’m glad! I was actually going to post a few other recommendations to “lock” and force the version, posting them just for the record:

  1. Remove node_modules to force re installation of packages
  2. Create a .nvmrc with the desired node version
  3. Force with nvm use through the console
  4. Run npm config set engine-strict true to be force the version