This PR updates our npm configuration to use node version 20 and re-point the docker build to debian:stable, because debian:stretch has been deprecated.
To test
Get off VPN if you are on VPN
Check what version of node you are using by running node -v
If not using version 20, switch to node version 20 by running nvm use 20[If it's not installed, install latest version of node by running nvm install 20.0.0 --reinstall-packages-from=14.17.0]
Run npm install
Run npm run serve
Changes:
In Dockerfile, point to to a stable debian release, instead of the archived stretch release, using the debian:stable tag listed as a current tag on Dockerhub.
In Dockerfile, get and install the current version of node (version 20)
In package.json remove addition of node-sass in devDependencies and instead specify latest version of sass, as node-sass is not supported for node 20. Node-sass is now deprecated, and the makers recommend switching to sass
In package.json add env NODE_OPTIONS=--openssl-legacy-provider to all 'serve' and 'build' scripts to overcome a lack of support for digital envelope routines in node 17+. See this issue and this comment
Update other miscellaneous packages to match versions used in more recently built and updated package.json in what-is-drought
Add .npmrc file in root directory with the content legacy-peer-deps=true to overcome peer dependency conflicts between cli-plugin-eslint, eslint, and babel-eslint. See this issue and this comment.
Testing:
Before making this pull request, I:
[X] Cleaned the code the way Vue likes it - run 'npm run lint --fix'
[ ] Made sure all tests run
[ ] Ran WAVE plugin 508 compliance tool
I can confirm this has been checked on:
[X] Chrome
[ ] Safari
[X] Edge
[X] Firefox
[ ] Samsung Internet
[ ] Internet Explorer 11 (not supported, but still needs at least a working user redirect page)
Changes made:
This PR updates our npm configuration to use
node
version 20 and re-point the docker build todebian:stable
, becausedebian:stretch
has been deprecated.To test
node -v
nvm use 20
[If it's not installed, install latest version of node by runningnvm install 20.0.0 --reinstall-packages-from=14.17.0
]npm install
npm run serve
Changes:
Dockerfile
, point to to a stable debian release, instead of the archived stretch release, using the debian:stable tag listed as a current tag on Dockerhub.Dockerfile
, get and install the current version of node (version 20)node-sass
indevDependencies
and instead specify latest version ofsass
, asnode-sass
is not supported for node 20.Node-sass
is now deprecated, and the makers recommend switching tosass
package.json
addenv NODE_OPTIONS=--openssl-legacy-provider
to all 'serve' and 'build'scripts
to overcome a lack of support for digital envelope routines innode
17+. See this issue and this commentpackage.json
in what-is-drought.npmrc
file in root directory with the content legacy-peer-deps=true to overcome peer dependency conflicts betweencli-plugin-eslint
,eslint
, andbabel-eslint
. See this issue and this comment.Testing:
Before making this pull request, I:
I can confirm this has been checked on: