mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[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:
@@ -30,6 +30,11 @@ done
|
|||||||
echo "Creating the symlink for [now] command to vercel CLI"
|
echo "Creating the symlink for [now] command to vercel CLI"
|
||||||
ln -s /usr/local/bin/vercel /usr/local/bin/now
|
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
|
rm -rf ~/n
|
||||||
|
|
||||||
invoke_tests "Node" "Node.js"
|
invoke_tests "Node" "Node.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user