[MacPorts] #51155: npm-devel @ 3.8.6 runtime error due to update.js patch
MacPorts
noreply at macports.org
Fri Apr 15 01:50:01 PDT 2016
#51155: npm-devel @ 3.8.6 runtime error due to update.js patch
-------------------------+--------------------------------
Reporter: dualityim@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.4
Keywords: npm | Port: npm-devel
-------------------------+--------------------------------
The following error is produced when running "npm update <any>":
{{{
21 verbose stack ReferenceError: what is not defined
21 verbose stack at
/opt/local/lib/node_modules/npm/lib/update.js:49:11
21 verbose stack at Array.forEach (native)
21 verbose stack at
/opt/local/lib/node_modules/npm/lib/update.js:45:12
21 verbose stack at
/opt/local/lib/node_modules/npm/lib/outdated.js:84:53
21 verbose stack at cb
(/opt/local/lib/node_modules/npm/node_modules/slide/lib/async-
map.js:47:24)
21 verbose stack at doIt
(/opt/local/lib/node_modules/npm/lib/outdated.js:329:14)
21 verbose stack at onCacheAdd
(/opt/local/lib/node_modules/npm/lib/outdated.js:423:9)
21 verbose stack at updateDeps
(/opt/local/lib/node_modules/npm/lib/outdated.js:394:16)
21 verbose stack at saved (/opt/local/lib/node_modules/npm/lib/cache
/caching-client.js:168:7)
21 verbose stack at /opt/local/lib/node_modules/npm/node_modules
/graceful-fs/polyfills.js:210:7
}}}
This is because the update.js patch in the port is no longer valid. The
variable "what" no longer exists in the scope where the patch resides. It
should probably be replaced with "ww.what".
--
Ticket URL: <https://trac.macports.org/ticket/51155>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list