Skip to content

Commit 8637c81

Browse files
committed
fix: ensure global installation
1 parent 0713ed4 commit 8637c81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/linux_test_install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
PNPM_VERSION: '6'
101101

102102
- NODE_VERSION: '12'
103-
NPM_VERSION: '>2.7.0 <10.0.0'
103+
NPM_VERSION: '>2.7.0 <9.0.0'
104104
PNPM_VERSION: '6'
105105

106106
- NODE_VERSION: '10'

.github/workflows/scripts/test_install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ npm_install_global() {
306306
# Installs a package globally via `npm` from GitHub.
307307
npm_install_global_github() {
308308
echo "Installing ${pkg_github_url}#${pkg_github_tag} as a global package..." >> "${log_file}" 2>&1
309-
npm install "${pkg_github_url}#${pkg_github_tag}" >> "${log_file}" 2>&1
309+
npm install -g "${pkg_github_url}#${pkg_github_tag}" >> "${log_file}" 2>&1
310310
if [[ "$?" -ne 0 ]]; then
311311
echo "Encountered an error when installing ${pkg_github_url}#${pkg_github_tag} as a global package via npm." >> "${log_file}" 2>&1
312312
cat "${working_dir}/npm-debug.log" >> "${log_file}" 2>&1

0 commit comments

Comments
 (0)