[MacPorts] #63119: npm7: global update refuses to update installed modules
MacPorts
noreply at macports.org
Sat Jun 19 15:21:04 UTC 2021
#63119: npm7: global update refuses to update installed modules
--------------------------+--------------------
Reporter: ShadSterling | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: npm7
--------------------------+--------------------
I have a couple of global modules which are outdated; `npm -g outdated`
gives
{{{
Package Current Wanted Latest Location Depended
by
@types/node 15.12.2 15.12.4 15.12.4 node_modules/@types/node global
typescript 4.3.2 4.3.4 4.3.4 node_modules/typescript global
}}}
So I want to update those modules, but `npm -g update` refuses to do so,
giving
{{{
npm ERR! update Ignoring attempt to update npm in /Users/polyergic/.npm-
global/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 /Users/polyergic/.npm-
global/lib which is part of the MacPorts npm7 base installation.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/polyergic/.npm/_logs/2021-06-19T15_10_56_465Z-
debug.log
}}}
The documentation for `npm update` (https://docs.npmjs.com/cli/v7/commands
/npm-update) says "If no package name is specified, all packages in the
specified location (global or local) will be updated." I specified global
without specifying a package, but none of the outdated global packages
were updated.
--
Ticket URL: <https://trac.macports.org/ticket/63119>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list