Skip to content

Commit 836dd6f

Browse files
Leonid LapshinLeonid Lapshin
andauthored
[Ubuntu] Fix npm global modules installation (actions#3734)
* fixed directories permissions * local bin permissions Co-authored-by: Leonid Lapshin <originalnoe-nazvanie@yandex.ru>
1 parent 13b1855 commit 836dd6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

images/linux/scripts/installers/nodejs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ done
3030
echo "Creating the symlink for [now] command to vercel CLI"
3131
ln -s /usr/local/bin/vercel /usr/local/bin/now
3232

33+
# fix global modules installation as regular user
34+
# related issue https://github.com/actions/virtual-environments/issues/3727
35+
sudo chmod -R 777 /usr/local/lib/node_modules
36+
sudo chmod -R 777 /usr/local/bin
37+
3338
rm -rf ~/n
3439

3540
invoke_tests "Node" "Node.js"

0 commit comments

Comments
 (0)