We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b1e84 commit 7a82d1eCopy full SHA for 7a82d1e
1 file changed
setup.sh
@@ -78,7 +78,13 @@ function install_vim_plugins()
78
mkdir -p "${HOME}/.local/share/coc/"
79
cd ~/.local/share/coc/extensions
80
if command -v npm > /dev/null && [ "$(whoami)" != root ]; then
81
- npm install --global-style --ignore-scripts --no-bin-links --no-package-lock --only=prod --omit=dev
+ npm_major_version="$(npm --version | awk -F. '{print $1}')"
82
+ if [ "${npm_major_version}" -ge 9 ]; then
83
+ opt=--install-strategy=shallow
84
+ else
85
+ opt=--global-style
86
+ fi
87
+ npm install "${opt}" --ignore-scripts --no-bin-links --no-package-lock --omit=dev
88
else
89
vim -c "CocDisable" -c quit -c quit
90
fi
0 commit comments