[Ubuntu] Fix Netlify installation, move its and vercel's installation to Nodejs.sh (#2666)

* fix netlify installation

* debug

* resolve comments

* small fix
This commit is contained in:
Dibir Magomedsaygitov
2021-02-09 18:57:05 +03:00
committed by GitHub
parent 902346ebcd
commit 395127da8f
8 changed files with 10 additions and 48 deletions

View File

@@ -7,8 +7,15 @@
# Install LTS Node.js and related build tools
curl -sL https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash -s -- -ny -
~/n/bin/n lts
npm install -g grunt gulp n parcel-bundler typescript newman
npm install -g grunt gulp n parcel-bundler typescript newman vercel
npm install -g --save-dev webpack webpack-cli
# Install the Netlify CLI using --unsafe-perm=true options to avoid permission issues
npm install -g --unsafe-perm=true netlify-cli
echo "Creating the symlink for [now] command to vercel CLI"
ln -s /usr/local/bin/vercel /usr/local/bin/now
rm -rf ~/n
# Install Yarn repository and key