File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
const npmrc = require ( './npmrc' ) ;
3
3
const env = require ( './env' ) ;
4
+ const path = require ( 'path' ) ;
5
+ const os = require ( 'os' ) ;
4
6
5
7
var argv ;
6
8
try {
9
11
argv = process . argv ;
10
12
}
11
13
12
- npmrc ( argv , process . env . npm_config_userconfig ) . catch ( e => {
14
+ npmrc ( argv , process . env . npm_config_userconfig || path . join ( os . homedir ( ) , '.npmrc' ) ) . catch ( e => {
13
15
if ( e . code === 'EACCES' || / \b p e r m i s s i o n s ? \b / i. test ( e . message ) ) {
14
16
console . error ( e . message ) ;
15
17
console . error ( 'Please try running this command again as root/Administrator.' ) ;
Original file line number Diff line number Diff line change 7
7
"url" : " https://github.com/gucong3000/mirror-config-china/issues"
8
8
},
9
9
"dependencies" : {
10
- "fs-extra" : " ^6.0.0 "
10
+ "fs-extra" : " ^6.0.1 "
11
11
},
12
12
"description" : " Mirrors in China about node.js" ,
13
13
"devDependencies" : {
14
- "codecov" : " ^3.0.1 " ,
15
- "eslint" : " ^5.0 .0" ,
14
+ "codecov" : " ^3.0.4 " ,
15
+ "eslint" : " ^5.1 .0" ,
16
16
"eslint-config-standard" : " ^11.0.0" ,
17
- "eslint-plugin-import" : " ^2.11 .0" ,
17
+ "eslint-plugin-import" : " ^2.13 .0" ,
18
18
"eslint-plugin-node" : " ^6.0.1" ,
19
- "eslint-plugin-promise" : " ^3.7 .0" ,
19
+ "eslint-plugin-promise" : " ^3.8 .0" ,
20
20
"eslint-plugin-standard" : " ^3.1.0" ,
21
- "mocha" : " ^5.1.1 " ,
21
+ "mocha" : " ^5.2.0 " ,
22
22
"nyc" : " ^12.0.2"
23
23
},
24
24
"homepage" : " https://github.com/gucong3000/mirror-config-china#readme" ,
50
50
"install-test" : " npm run install && npm test" ,
51
51
"test" : " mocha --no-timeouts"
52
52
},
53
- "version" : " 2.5.0 "
53
+ "version" : " 2.5.1 "
54
54
}
You can’t perform that action at this time.
0 commit comments