pxnpm 2.0.6-beta.0 → 2.0.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.js +4 -4
- package/package.json +1 -1
package/lib/config.js
CHANGED
|
@@ -13,10 +13,10 @@ if (process.platform === "win32") {
|
|
|
13
13
|
root = process.env.HOME || process.env.TMPDIR || "/tmp";
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
let proxyC = '';
|
|
16
|
+
// let proxyC = '';
|
|
17
17
|
let prefix = null;
|
|
18
18
|
try {
|
|
19
|
-
prefix = cp.execSync("npm config get prefix").toString().trim();
|
|
19
|
+
prefix = cp.execSync("npm config get prefix", {timeout: 2000}).toString().trim();
|
|
20
20
|
} catch (err) {
|
|
21
21
|
// ignore it
|
|
22
22
|
debug("npm config cli error: %s", err);
|
|
@@ -99,7 +99,7 @@ if (!is && os) {
|
|
|
99
99
|
|
|
100
100
|
if (is && !os) {
|
|
101
101
|
addr = getAddr("inner");
|
|
102
|
-
proxyC = 'http://rdc-lan-ningfj.inner.px.nfjbill.ren:1088'
|
|
102
|
+
// proxyC = 'http://rdc-lan-ningfj.inner.px.nfjbill.ren:1088'
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
let proxy = addr.proxy;
|
|
@@ -130,6 +130,6 @@ module.exports = {
|
|
|
130
130
|
iojsDisturl: `${proxy}/mirrors/node`,
|
|
131
131
|
cache: path.join(root, ".pxnpm"), // cache folder name
|
|
132
132
|
userconfig,
|
|
133
|
-
proxy:
|
|
133
|
+
proxy: '',
|
|
134
134
|
prefix
|
|
135
135
|
};
|