Skip to content

Commit 22252f8

Browse files
authored
fix: disregard warnings to get only package name (#449)
1 parent 9b143bc commit 22252f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/utils/npm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def version():
3131

3232
@staticmethod
3333
def download(package, output_file):
34-
output = Npm.run_npm_command('view {0} dist.tarball'.format(package))
34+
output = Npm.run_npm_command('view {0} dist.tarball -s'.format(package))
3535
assert '.tgz' in output, 'Failed to find tarball of {0} package.'.format(package)
3636
npm_package = output.split('/')[-1].split('\n')[0]
3737
src_file = os.path.join(Settings.TEST_SUT_HOME, npm_package)

0 commit comments

Comments
 (0)