Opened 9 years ago
Closed 9 years ago
#51155 closed defect (fixed)
npm-devel @ 3.8.6 runtime error due to update.js patch
Reported by: | alexleigh (Alex Leigh) | Owned by: | ci42 |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | ||
Port: | npm-devel |
Description
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".
Change History (2)
comment:1 Changed 9 years ago by ci42
Keywords: | npm removed |
---|---|
Owner: | changed from macports-tickets@… to ciserlohn@… |
comment:2 Changed 9 years ago by ci42
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Fixed in r148074.