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({});
|
||||
|
||||
// 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(
|
||||
process.env.NPM_REGISTRY,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ mkdir -p tmp/use-npm-repository && cd tmp/use-npm-repository
|
|||
|
||||
# install node LTS.
|
||||
# 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
|
||||
node --version
|
||||
npm --version
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ Set-Location tmp/use-npm-repository
|
|||
# see https://docs.npmjs.com/cli/adduser
|
||||
|
||||
# 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
|
||||
Update-SessionEnvironment
|
||||
node --version
|
||||
|
|
|
|||
Loading…
Reference in New Issue