Chris 5 years ago
parent
commit
0e9a6547e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/install.sh

+ 2 - 2
utils/install.sh

@@ -23,7 +23,7 @@ installnode() { \
   [  -n "$(uname -a | grep Ubuntu)" ] && installnodeubuntu
   [ -f "/etc/arch-release" ] && installnodearch
   [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ] && echo "Windows not currently supported"
-  npm i -g neovim
+  sudo npm i -g neovim
 }
 
 installpiponmac() { \
@@ -59,7 +59,7 @@ installcocextensions() { \
   cd ~/.config/coc/extensions
   [ ! -f package.json ] && echo '{"dependencies":{}}'> package.json
   # Change extension names to the extensions you need
-  npm install coc-explorer coc-snippets coc-json --global-style --ignore-scripts --no-bin-links --no-package-lock --only=prod
+  sudo npm install coc-explorer coc-snippets coc-json --global-style --ignore-scripts --no-bin-links --no-package-lock --only=prod
 }
 
 cloneconfig() { \