[Ubuntu] Fix npm global modules installation (#3734)

* fixed directories permissions

* local bin permissions

Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
This commit is contained in:
Leonid Lapshin
2021-07-16 10:55:47 +03:00
committed by GitHub
parent 13b1855134
commit 836dd6f083

View File

@@ -30,6 +30,11 @@ done
echo "Creating the symlink for [now] command to vercel CLI"
ln -s /usr/local/bin/vercel /usr/local/bin/now
# fix global modules installation as regular user
# related issue https://github.com/actions/virtual-environments/issues/3727
sudo chmod -R 777 /usr/local/lib/node_modules
sudo chmod -R 777 /usr/local/bin
rm -rf ~/n
invoke_tests "Node" "Node.js"