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!
It is still 9.4, but after doing that and reinstalling node all my issues were fixed. Thank you
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:
- Remove node_modules to force re installation of packages
- Create a .nvmrc with the desired node version
- Force with
nvm use
through the console - Run
npm config set engine-strict true
to be force the version