upgrade to node.js 22
This commit is contained in:
parent
a54d6dd97f
commit
d6e86b302e
|
|
@ -2,7 +2,7 @@ var RegistryClient = require('npm-registry-client');
|
||||||
|
|
||||||
var client = new RegistryClient({});
|
var client = new RegistryClient({});
|
||||||
|
|
||||||
// see https://github.com/npm/npm-registry-client/blob/v8.5.0/lib/adduser.js
|
// see https://github.com/npm/npm-registry-client/blob/v8.6.0/lib/adduser.js
|
||||||
client.adduser(
|
client.adduser(
|
||||||
process.env.NPM_REGISTRY,
|
process.env.NPM_REGISTRY,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ mkdir -p tmp/use-npm-repository && cd tmp/use-npm-repository
|
||||||
|
|
||||||
# install node LTS.
|
# install node LTS.
|
||||||
# see https://github.com/nodesource/distributions#debinstall
|
# see https://github.com/nodesource/distributions#debinstall
|
||||||
curl -sL --fail --show-error https://deb.nodesource.com/setup_18.x | bash
|
curl -sL --fail --show-error https://deb.nodesource.com/setup_22.x | bash
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
node --version
|
node --version
|
||||||
npm --version
|
npm --version
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,8 @@ Set-Location tmp/use-npm-repository
|
||||||
# see https://docs.npmjs.com/cli/adduser
|
# see https://docs.npmjs.com/cli/adduser
|
||||||
|
|
||||||
# install node LTS.
|
# install node LTS.
|
||||||
choco install -y nodejs-lts
|
# see https://community.chocolatey.org/packages/nodejs-lts
|
||||||
|
choco install -y nodejs-lts --version 22.16.0
|
||||||
Import-Module C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
|
Import-Module C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1
|
||||||
Update-SessionEnvironment
|
Update-SessionEnvironment
|
||||||
node --version
|
node --version
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue