ports/www/npm/files/extra-patch-bug-178881
Sunpoet Po-Chuan Hsieh 063efbdd53 Update to 4.3.0
- Change npm installation [1]

Starting with this update, npm will be built, installed and archived on my own
box to speed up the installation. The installation on target machines will be
simply extraction and copy.

Changes:	https://github.com/npm/npm/releases
		https://github.com/npm/npm/blob/v4.3.0/CHANGELOG.md
Suggested by:	adamw [1]
2017-03-13 10:27:36 +00:00

30 lines
854 B
Text

--- lib/node_modules/npm/lib/config/defaults.js.orig 2015-05-01 04:03:19 UTC
+++ lib/node_modules/npm/lib/config/defaults.js
@@ -316,26 +316,7 @@ exports.types =
}
function getLocalAddresses () {
- var interfaces
- // #8094: some environments require elevated permissions to enumerate
- // interfaces, and synchronously throw EPERM when run without
- // elevated privileges
- try {
- interfaces = os.networkInterfaces()
- } catch (e) {
- interfaces = {}
- }
-
- return Object.keys(interfaces).map(function (nic) {
- return interfaces[nic].filter(function (addr) {
- return addr.family === 'IPv4'
- })
- .map(function (addr) {
- return addr.address
- })
- }).reduce(function (curr, next) {
- return curr.concat(next)
- }, []).concat(undefined)
+ return [ '127.0.0.1', undefined ]
}
exports.shorthands =