Command 'npm i -g npm@latest' fails


#1

travis file is:

language: node_js
sudo: false
node_js:
  - '6'
  - '8'
  - '9'
  - '10'

before_install:
  - if [[ `node -v` = v6* ]]; then npm i -g npx; fi
  - npx --version

script:
  - node --version
  - npm --version
  - npx --version
  - npm run test-with-no-coverage-check
  # Update npm to check that audit analyzer is then (still) active
  - npm i -g npm@latest
  - node --version
  - npm --version
  - npx --version
  - npm test

link : https://travis-ci.org/inikulin/publish-please/jobs/443865361


#2

See the nvs item in Current known issues — Please read this before posting a new topic.


#4

Hi @BanzaiMan

I think this issue is different. This issue is about npm i -g npm@latest is failing, I don’t see that in the common issues list.


#5

Hey @jasongin

I was wondering if you could help with this.

The log line related to the failure is : https://travis-ci.org/inikulin/publish-please/jobs/443865359#L5685-L5688


#6