Skip to content

Commit 660b389

Browse files
committed
fix: add time log
1 parent 9f8af7e commit 660b389

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ function installUsingNPM(pkg, subpath, binPath) {
4343
try {
4444
fs.writeFileSync(path.join(installDir, 'package.json'), '{}')
4545

46-
console.time('文件下载时间')
46+
console.time('File download time')
4747
child_process.execSync(`npm install ${pkg}@${versionFromPackageJSON} --save`, {
4848
cwd: installDir,
4949
stdio: 'inherit',
5050
})
51-
console.timeEnd('文件下载时间')
51+
console.timeEnd('File download time')
5252

53-
console.time('文件移动时间')
53+
console.time('File moving time')
5454
const installedBinPath = path.join(installDir, 'node_modules', pkg, subpath)
5555
fs.renameSync(installedBinPath, binPath)
56-
console.timeEnd('文件移动时间')
56+
console.timeEnd('File moving time')
5757
} catch (e) {
5858
throw e
5959
}

0 commit comments

Comments
 (0)