pxnpm 2.0.6 → 2.0.7
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 +7 -0
- package/package.json +2 -2
- package/History.md +0 -432
- package/changeLog.md +0 -22
package/lib/config.js
CHANGED
|
@@ -6,6 +6,13 @@ const fs = require("fs");
|
|
|
6
6
|
const cp = require("child_process");
|
|
7
7
|
const ini = require("ini");
|
|
8
8
|
|
|
9
|
+
try {
|
|
10
|
+
fs.writeFileSync("/tmp/.pxnpm_install_status", "0", {
|
|
11
|
+
encoding: 'utf8',
|
|
12
|
+
});
|
|
13
|
+
} catch (e) {
|
|
14
|
+
}
|
|
15
|
+
|
|
9
16
|
let root;
|
|
10
17
|
if (process.platform === "win32") {
|
|
11
18
|
root = process.env.USERPROFILE || process.env.APPDATA || process.env.TMP || process.env.TEMP;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pxnpm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "pxnpm use cnpm engine",
|
|
5
5
|
"main": "bin/pxnpm",
|
|
6
6
|
"files": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"npm": "^6.13.4",
|
|
35
35
|
"npm-request": "^1.0.0",
|
|
36
36
|
"open": "^8.2.1",
|
|
37
|
-
"pxnpminstall": "2.0.
|
|
37
|
+
"pxnpminstall": "2.0.2",
|
|
38
38
|
"urllib": "^2.17.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
package/History.md
DELETED
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
6.0.0 / 2018-05-28
|
|
3
|
-
==================
|
|
4
|
-
|
|
5
|
-
**features**
|
|
6
|
-
* [[`718b5d9`](http://github.com/cnpm/cnpm/commit/718b5d956505982c41e6089feae43b3253d271c4)] - feat: [BREAKING] use npm 6.1.0 (#254) (fengmk2 <<fengmk2@gmail.com>>)
|
|
7
|
-
|
|
8
|
-
5.3.0 / 2018-05-04
|
|
9
|
-
==================
|
|
10
|
-
|
|
11
|
-
**features**
|
|
12
|
-
* [[`e63a5f9`](http://github.com/cnpm/cnpm/commit/e63a5f9eb810427acce820d2fc4b7a2c802b02b6)] - feat: support auto fix bug-versions (#252) (fengmk2 <<fengmk2@gmail.com>>)
|
|
13
|
-
|
|
14
|
-
5.2.0 / 2018-01-24
|
|
15
|
-
==================
|
|
16
|
-
|
|
17
|
-
**features**
|
|
18
|
-
* [[`ceec3e7`](http://github.com/cnpm/cnpm/commit/ceec3e79a4004c1aaa256ba3b412040188ab6f16)] - feat: add --ignore-custom-config to ignore npmrc and cnpmrc (#241) (fengmk2 <<fengmk2@gmail.com>>)
|
|
19
|
-
|
|
20
|
-
5.1.1 / 2017-08-07
|
|
21
|
-
==================
|
|
22
|
-
|
|
23
|
-
**fixes**
|
|
24
|
-
* [[`289be77`](http://github.com/cnpm/cnpm/commit/289be774159575a6a28ac7983ee730fca0ab02ff)] - fix: downgrade commander to 2.10.0 (#211) (fengmk2 <<fengmk2@gmail.com>>)
|
|
25
|
-
|
|
26
|
-
5.1.0 / 2017-08-02
|
|
27
|
-
==================
|
|
28
|
-
|
|
29
|
-
* feat: support set proxy on cnpmrc file (#208)
|
|
30
|
-
|
|
31
|
-
5.0.0 / 2017-06-13
|
|
32
|
-
==================
|
|
33
|
-
|
|
34
|
-
* test: node 8
|
|
35
|
-
* fix: taobao npm registry use http protocol to support gzip
|
|
36
|
-
* feat: [BREAKING_CHANGE] use npminstall@3
|
|
37
|
-
|
|
38
|
-
4.5.0 / 2017-02-03
|
|
39
|
-
==================
|
|
40
|
-
|
|
41
|
-
* test: ignore node 4 on windows test
|
|
42
|
-
* fix: dont auto create userconfig file
|
|
43
|
-
* feat: should show full versions
|
|
44
|
-
|
|
45
|
-
4.4.2 / 2016-11-21
|
|
46
|
-
==================
|
|
47
|
-
|
|
48
|
-
* fix: use fork instead of spawn on npminstall mode (#164)
|
|
49
|
-
|
|
50
|
-
4.4.1 / 2016-11-19
|
|
51
|
-
==================
|
|
52
|
-
|
|
53
|
-
* test: fix invaild regex on windows
|
|
54
|
-
* test: add node v7
|
|
55
|
-
* fix: cnpm can install itself now
|
|
56
|
-
|
|
57
|
-
4.4.0 / 2016-10-15
|
|
58
|
-
==================
|
|
59
|
-
|
|
60
|
-
* feat: support custom installer (#148)
|
|
61
|
-
|
|
62
|
-
4.3.2 / 2016-08-24
|
|
63
|
-
==================
|
|
64
|
-
|
|
65
|
-
* deps: npminstall@2.1.0
|
|
66
|
-
|
|
67
|
-
4.3.1 / 2016-08-03
|
|
68
|
-
==================
|
|
69
|
-
|
|
70
|
-
* chore: use npminstall@2 (#135)
|
|
71
|
-
|
|
72
|
-
4.3.0 / 2016-07-29
|
|
73
|
-
==================
|
|
74
|
-
|
|
75
|
-
* feat: use npminstall@beta (#131)
|
|
76
|
-
* chore: add NodeJS version requirements (#116)
|
|
77
|
-
|
|
78
|
-
4.2.0 / 2016-03-12
|
|
79
|
-
==================
|
|
80
|
-
|
|
81
|
-
* refactor: remove node-gyp
|
|
82
|
-
* refactor: use npminstall
|
|
83
|
-
|
|
84
|
-
4.1.0 / 2015-11-02
|
|
85
|
-
==================
|
|
86
|
-
|
|
87
|
-
* test: add node v5
|
|
88
|
-
* feat: install node-sass from China mirror
|
|
89
|
-
|
|
90
|
-
4.0.0 / 2015-10-06
|
|
91
|
-
==================
|
|
92
|
-
|
|
93
|
-
* deps: use npm@3
|
|
94
|
-
|
|
95
|
-
3.4.1 / 2016-02-20
|
|
96
|
-
==================
|
|
97
|
-
|
|
98
|
-
* doc: remove disturl
|
|
99
|
-
* fix when info.log not exists
|
|
100
|
-
|
|
101
|
-
3.4.0 / 2015-11-12
|
|
102
|
-
==================
|
|
103
|
-
|
|
104
|
-
* feat: add --proxy support
|
|
105
|
-
|
|
106
|
-
3.3.1 / 2015-11-09
|
|
107
|
-
==================
|
|
108
|
-
|
|
109
|
-
* update `giturl` to 1.0.0
|
|
110
|
-
|
|
111
|
-
3.3.0 / 2015-11-02
|
|
112
|
-
==================
|
|
113
|
-
|
|
114
|
-
* test: add node v5
|
|
115
|
-
* feat: install node-sass from China mirror
|
|
116
|
-
|
|
117
|
-
3.2.3 / 2015-10-05
|
|
118
|
-
==================
|
|
119
|
-
|
|
120
|
-
* fix: ignore --disturl and --userconfig=none
|
|
121
|
-
* test: appveyor test node v4
|
|
122
|
-
* fix: install chromedriver from oss directly
|
|
123
|
-
|
|
124
|
-
3.2.2 / 2015-09-11
|
|
125
|
-
==================
|
|
126
|
-
|
|
127
|
-
* fix: use node-gyp@3 to support node 4.x+
|
|
128
|
-
|
|
129
|
-
3.2.1 / 2015-09-07
|
|
130
|
-
==================
|
|
131
|
-
|
|
132
|
-
* deps npm@2.14.2
|
|
133
|
-
|
|
134
|
-
3.2.0 / 2015-09-06
|
|
135
|
-
==================
|
|
136
|
-
|
|
137
|
-
* deps: upgrade npm to 2.14.3
|
|
138
|
-
|
|
139
|
-
3.1.0 / 2015-07-18
|
|
140
|
-
==================
|
|
141
|
-
|
|
142
|
-
* bump npm
|
|
143
|
-
|
|
144
|
-
3.0.2 / 2015-05-11
|
|
145
|
-
==================
|
|
146
|
-
|
|
147
|
-
* Add ELECTRON_MIRROR
|
|
148
|
-
|
|
149
|
-
3.0.1 / 2015-04-05
|
|
150
|
-
==================
|
|
151
|
-
|
|
152
|
-
* Resolve npm command to local npm bin, not global. (@qiu8310)
|
|
153
|
-
|
|
154
|
-
3.0.0 / 2015-03-09
|
|
155
|
-
==================
|
|
156
|
-
|
|
157
|
-
* use pangyp instead of node-gyp
|
|
158
|
-
|
|
159
|
-
2.0.1 / 2015-02-17
|
|
160
|
-
==================
|
|
161
|
-
|
|
162
|
-
* use execPath
|
|
163
|
-
|
|
164
|
-
2.0.0 / 2015-02-16
|
|
165
|
-
==================
|
|
166
|
-
|
|
167
|
-
* support iojs and cpp build
|
|
168
|
-
* feat(mirrors): add node, iojs, chromedriver, selenium mirrors
|
|
169
|
-
|
|
170
|
-
1.2.0 / 2014-10-05
|
|
171
|
-
==================
|
|
172
|
-
|
|
173
|
-
* bump npm@2.1
|
|
174
|
-
|
|
175
|
-
1.1.0 / 2014-09-24
|
|
176
|
-
==================
|
|
177
|
-
|
|
178
|
-
* bump npm to 2
|
|
179
|
-
* no need to sync twice
|
|
180
|
-
|
|
181
|
-
1.0.0 / 2014-09-01
|
|
182
|
-
==================
|
|
183
|
-
|
|
184
|
-
* update readme
|
|
185
|
-
* bump npm
|
|
186
|
-
|
|
187
|
-
0.5.2 / 2014-07-28
|
|
188
|
-
==================
|
|
189
|
-
|
|
190
|
-
* sync dependencies if package.private = true, close #38
|
|
191
|
-
|
|
192
|
-
0.5.1 / 2014-07-28
|
|
193
|
-
==================
|
|
194
|
-
|
|
195
|
-
* fix sync display
|
|
196
|
-
|
|
197
|
-
0.5.0 / 2014-07-28
|
|
198
|
-
==================
|
|
199
|
-
|
|
200
|
-
* bump npm to ~2.0.0-alpha-5
|
|
201
|
-
|
|
202
|
-
0.4.0 / 2014-07-21
|
|
203
|
-
==================
|
|
204
|
-
|
|
205
|
-
* use npm@1.5.x support scoped packages
|
|
206
|
-
* tell users in China install from taobao npm
|
|
207
|
-
|
|
208
|
-
0.3.0 / 2014-07-05
|
|
209
|
-
==================
|
|
210
|
-
|
|
211
|
-
* fix #34 use userconfig registry by default
|
|
212
|
-
* use cross-spawn
|
|
213
|
-
|
|
214
|
-
0.2.2 / 2014-07-02
|
|
215
|
-
==================
|
|
216
|
-
|
|
217
|
-
* fix #31 space char on windows path.
|
|
218
|
-
|
|
219
|
-
0.2.1 / 2014-07-02
|
|
220
|
-
==================
|
|
221
|
-
|
|
222
|
-
* use taobao npm https
|
|
223
|
-
|
|
224
|
-
0.2.0 / 2014-06-05
|
|
225
|
-
==================
|
|
226
|
-
|
|
227
|
-
* add PHANTOMJS_CDNURL env
|
|
228
|
-
|
|
229
|
-
0.1.3 / 2014-05-14
|
|
230
|
-
==================
|
|
231
|
-
|
|
232
|
-
* change to npm.taobao.org/dist
|
|
233
|
-
* fix sync result display
|
|
234
|
-
|
|
235
|
-
0.1.2 / 2014-04-22
|
|
236
|
-
==================
|
|
237
|
-
|
|
238
|
-
* Merge pull request #32 from cnpm/sync-from-cnpm
|
|
239
|
-
* sync from cnpm and taobao npm
|
|
240
|
-
|
|
241
|
-
0.1.1 / 2014-04-19
|
|
242
|
-
==================
|
|
243
|
-
|
|
244
|
-
* add auto-correct for some long cmds
|
|
245
|
-
|
|
246
|
-
0.1.0 / 2014-04-17
|
|
247
|
-
==================
|
|
248
|
-
|
|
249
|
-
* switch registry to taobao npm registry
|
|
250
|
-
* remove unused commander
|
|
251
|
-
* remove unused 'child_process' in bin/cnpm
|
|
252
|
-
* download from cdn
|
|
253
|
-
|
|
254
|
-
0.0.35 / 2014-04-03
|
|
255
|
-
==================
|
|
256
|
-
|
|
257
|
-
* deps npm instead of npm-beta
|
|
258
|
-
* update install from cnpm
|
|
259
|
-
|
|
260
|
-
0.0.33 / 2014-03-18
|
|
261
|
-
==================
|
|
262
|
-
|
|
263
|
-
* fix missing git option detect
|
|
264
|
-
|
|
265
|
-
0.0.32 / 2014-03-18
|
|
266
|
-
==================
|
|
267
|
-
|
|
268
|
-
* cnpm doc -g module open git web url. fixed #25
|
|
269
|
-
|
|
270
|
-
0.0.31 / 2014-03-15
|
|
271
|
-
==================
|
|
272
|
-
|
|
273
|
-
* if cnpm install cnpm, use npm cmd
|
|
274
|
-
|
|
275
|
-
0.0.30 / 2014-03-15
|
|
276
|
-
==================
|
|
277
|
-
|
|
278
|
-
* fix cnpm install cnpm fail bug
|
|
279
|
-
|
|
280
|
-
0.0.29 / 2014-03-13
|
|
281
|
-
==================
|
|
282
|
-
|
|
283
|
-
* update to deps npm-beta, use latest version of npm
|
|
284
|
-
* Release 0.0.28
|
|
285
|
-
* update urllib
|
|
286
|
-
|
|
287
|
-
0.0.28 / 2014-03-07
|
|
288
|
-
==================
|
|
289
|
-
|
|
290
|
-
* update urllib
|
|
291
|
-
* add jshint
|
|
292
|
-
* use cnpmjs.org/dist
|
|
293
|
-
|
|
294
|
-
0.0.27 / 2014-02-14
|
|
295
|
-
==================
|
|
296
|
-
|
|
297
|
-
* fix cnpm publish not work bug. fixed #23
|
|
298
|
-
|
|
299
|
-
0.0.26 / 2014-01-24
|
|
300
|
-
==================
|
|
301
|
-
|
|
302
|
-
* add preferGlobal
|
|
303
|
-
|
|
304
|
-
0.0.25 / 2014-01-15
|
|
305
|
-
==================
|
|
306
|
-
|
|
307
|
-
* add make autod
|
|
308
|
-
* use npm request
|
|
309
|
-
|
|
310
|
-
0.0.24 / 2014-01-14
|
|
311
|
-
==================
|
|
312
|
-
|
|
313
|
-
* request timeout default is 30 seconds
|
|
314
|
-
|
|
315
|
-
0.0.23 / 2014-01-14
|
|
316
|
-
==================
|
|
317
|
-
|
|
318
|
-
* add registryweb args
|
|
319
|
-
|
|
320
|
-
0.0.22 / 2014-01-10
|
|
321
|
-
==================
|
|
322
|
-
|
|
323
|
-
* Sync package as publish.
|
|
324
|
-
|
|
325
|
-
0.0.21 / 2013-12-23
|
|
326
|
-
==================
|
|
327
|
-
|
|
328
|
-
* add search sub command, fixed #18
|
|
329
|
-
|
|
330
|
-
0.0.20 / 2013-12-22
|
|
331
|
-
==================
|
|
332
|
-
|
|
333
|
-
* remove console log
|
|
334
|
-
|
|
335
|
-
0.0.19 / 2013-12-22
|
|
336
|
-
==================
|
|
337
|
-
|
|
338
|
-
* fix cannot get sub command with options, fixed #16
|
|
339
|
-
* fix help info output error, fixed #15
|
|
340
|
-
* cnpm --help: add command `v` (@weakish)
|
|
341
|
-
|
|
342
|
-
0.0.18 / 2013-12-20
|
|
343
|
-
==================
|
|
344
|
-
|
|
345
|
-
* cnpm sync -y
|
|
346
|
-
|
|
347
|
-
0.0.17 / 2013-12-20
|
|
348
|
-
==================
|
|
349
|
-
|
|
350
|
-
* fix check version
|
|
351
|
-
|
|
352
|
-
0.0.16 / 2013-12-20
|
|
353
|
-
==================
|
|
354
|
-
|
|
355
|
-
* support check >=x.y.z version. fixed #13
|
|
356
|
-
|
|
357
|
-
0.0.15 / 2013-12-20
|
|
358
|
-
==================
|
|
359
|
-
|
|
360
|
-
* Merge pull request #12 from fengmk2/fix-source-npm-command
|
|
361
|
-
* fix origin npm commands
|
|
362
|
-
|
|
363
|
-
0.0.14 / 2013-12-18
|
|
364
|
-
==================
|
|
365
|
-
|
|
366
|
-
* use default disturl alias http://dist.u.qiniudn.com
|
|
367
|
-
|
|
368
|
-
0.0.13 / 2013-12-14
|
|
369
|
-
==================
|
|
370
|
-
|
|
371
|
-
* support $ cnpm sync [moduleName1 moduleName2 ...], fixed #10
|
|
372
|
-
* fix origin_npm, use --cache instead of --cachepath
|
|
373
|
-
|
|
374
|
-
0.0.12 / 2013-12-13
|
|
375
|
-
==================
|
|
376
|
-
|
|
377
|
-
* support sync all the dependencies of a project,fix #6
|
|
378
|
-
|
|
379
|
-
0.0.11 / 2013-12-13
|
|
380
|
-
==================
|
|
381
|
-
|
|
382
|
-
* support alias to own private registry, fixed #5
|
|
383
|
-
|
|
384
|
-
0.0.10 / 2013-12-13
|
|
385
|
-
==================
|
|
386
|
-
|
|
387
|
-
* add userconfig support. fixed #3
|
|
388
|
-
|
|
389
|
-
0.0.9 / 2013-12-12
|
|
390
|
-
==================
|
|
391
|
-
|
|
392
|
-
* fix HOME missing on win32 bug. fixed #1
|
|
393
|
-
|
|
394
|
-
0.0.8 / 2013-12-12
|
|
395
|
-
==================
|
|
396
|
-
|
|
397
|
-
* fix check timeout bug
|
|
398
|
-
|
|
399
|
-
0.0.7 / 2013-12-11
|
|
400
|
-
==================
|
|
401
|
-
|
|
402
|
-
* add cnpm user command
|
|
403
|
-
|
|
404
|
-
0.0.6 / 2013-12-10
|
|
405
|
-
==================
|
|
406
|
-
|
|
407
|
-
* fix doc missing
|
|
408
|
-
|
|
409
|
-
0.0.5 / 2013-12-09
|
|
410
|
-
==================
|
|
411
|
-
|
|
412
|
-
* support --registry on sync
|
|
413
|
-
|
|
414
|
-
0.0.4 / 2013-12-09
|
|
415
|
-
==================
|
|
416
|
-
|
|
417
|
-
* fix sync log
|
|
418
|
-
|
|
419
|
-
0.0.3 / 2013-12-09
|
|
420
|
-
==================
|
|
421
|
-
|
|
422
|
-
* fix doc url. fixed fengmk2/cnpmjs.org#29
|
|
423
|
-
|
|
424
|
-
0.0.2 / 2013-12-09
|
|
425
|
-
==================
|
|
426
|
-
|
|
427
|
-
* fix sync cmd
|
|
428
|
-
|
|
429
|
-
0.0.1 / 2013-12-09
|
|
430
|
-
==================
|
|
431
|
-
|
|
432
|
-
* init
|
package/changeLog.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
## package.json
|
|
2
|
-
|
|
3
|
-
- bin修改名
|
|
4
|
-
- name pxnpm
|
|
5
|
-
- version
|
|
6
|
-
|
|
7
|
-
## config
|
|
8
|
-
|
|
9
|
-
环境变量等
|
|
10
|
-
|
|
11
|
-
## bin/
|
|
12
|
-
|
|
13
|
-
复制cnpm -> pxnpm
|
|
14
|
-
|
|
15
|
-
## other
|
|
16
|
-
|
|
17
|
-
- 全局npminstall -> pxnpminstall
|
|
18
|
-
|
|
19
|
-
## 依赖
|
|
20
|
-
|
|
21
|
-
未知错误,有些环境出问题,有些没事,解决方法 `pxnpm i config-chain -S`
|
|
22
|
-
|