Opened 3 years ago

Closed 2 years ago

#64622 closed defect (fixed)

npm8 update instructions reference npm7

Reported by: idontusenumbers (Charlie Hayes) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: npm8

Description

I installed npm8.

When running npm update

npm update -g

causes an error instructing me to run

npm ERR! update Ignoring attempt to update npm in /opt/local/lib
npm ERR! update which is part of the MacPorts npm7 base
npm ERR! update installation. To update npm please run:
npm ERR! update sudo port selfupdate && sudo port upgrade npm7
npm ERR! Ignoring attempt to update npm in /opt/local/lib which is part of the MacPorts npm7 base installation.

npm7 is not installed and thus macports errors when I run that command.

The error message should read npm8 for the npm8 package.

Change History (2)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ci42
Status: newassigned

Correct, this message needs to be fixed in patch-lib-commands-update.js.diff and then the port's revision (or version) must be increased.

comment:2 Changed 2 years ago by Robotex <Robotex@…>

Resolution: fixed
Status: assignedclosed

In 4d19ccd81976015070c30a854ce1b78e9bde89aa/macports-ports (master):

npm8: minor text corrections

  • Fixed the update message referring to the wrong npm port

Closes: #64622

Note: See TracTickets for help on using tickets.