Skip to content

Commit 8761301

Browse files
committed
fix(reload): 修复not in gzip format解压报错
1 parent 6424cd2 commit 8761301

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/commands/reload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.run = function (options) {
4444
mkdirp.sync(packagePath);
4545

4646
// 下载
47-
var tarName = depName + '@' + version + '.tar.gz';
47+
var tarName = depName + '@' + version + '.tar';
4848
var extractPath = sysPath.join(process.cwd(), './node_modules/', tarName);
4949
var downloadPath = servicePath + '/' + tarName;
5050
var downloadStream = request(downloadPath).on('response', function (response) {

src/commands/reload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ exports.run = (options) => {
4141
mkdirp.sync(packagePath)
4242

4343
// 下载
44-
const tarName = depName + '@' + version + '.tar.gz'
44+
const tarName = depName + '@' + version + '.tar'
4545
const extractPath = sysPath.join(process.cwd(), './node_modules/', tarName)
4646
const downloadPath = servicePath + '/' + tarName
4747
const downloadStream = request(downloadPath)

0 commit comments

Comments
 (0)