install npm pkgs globally by local prefix
This commit is contained in:
parent
852a7f6b1e
commit
5e8e124b4e
|
@ -16,6 +16,8 @@ for lang in $default_lsp_langs; do
|
||||||
choose_langs $lang
|
choose_langs $lang
|
||||||
done
|
done
|
||||||
|
|
||||||
|
npm config set prefix=~/.node_modules # for global npm pkg installation
|
||||||
|
|
||||||
pfx="~~~~~ "
|
pfx="~~~~~ "
|
||||||
heading() {
|
heading() {
|
||||||
echo
|
echo
|
||||||
|
@ -83,7 +85,7 @@ install_node_deps() {
|
||||||
echo "npm not installed"
|
echo "npm not installed"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
sudo npm install -g $@
|
npm install -g $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# install languages
|
# install languages
|
||||||
|
@ -134,6 +136,8 @@ if [[ ${warn_path} == true ]]; then
|
||||||
echo "Ensure ${LSP_BIN_PATH} is available in your \$PATH variable"
|
echo "Ensure ${LSP_BIN_PATH} is available in your \$PATH variable"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "add ~/.node_modules/bin at PATH!"
|
||||||
|
|
||||||
# install all plugins via packer
|
# install all plugins via packer
|
||||||
|
|
||||||
nvim +PackerInstall
|
nvim +PackerInstall
|
||||||
|
|
Loading…
Reference in New Issue