From 9d3fcffab4bcf8af2f8c46598d89712aff22a0e6 Mon Sep 17 00:00:00 2001 From: Marcel Gerber Date: Fri, 10 Dec 2021 10:38:30 +0100 Subject: [PATCH] [Ubuntu] remove `--unsafe-perm` code for netlify-cli (#4712) --- images/linux/scripts/installers/nodejs.sh | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/images/linux/scripts/installers/nodejs.sh b/images/linux/scripts/installers/nodejs.sh index 3969e3899..8556a57ee 100644 --- a/images/linux/scripts/installers/nodejs.sh +++ b/images/linux/scripts/installers/nodejs.sh @@ -14,20 +14,7 @@ bash ~/n $defaultVersion # Install node modules node_modules=$(get_toolset_value '.node_modules[].name') - -# remove commenting out of this line as nmp migrated to v7 -# npm install -g $node_modules - -# TODO: workaround for Netlify CLI with npm6. Remove 19-28 and uncomment 17 if migration to npm7 compelted -for module in $node_modules; do - echo "Installing node module $module" - if [ $module = "netlify-cli" ];then - # Install the Netlify CLI using --unsafe-perm=true options to avoid permission issues - npm install -g --unsafe-perm=true $module - else - npm install -g $module - fi -done +npm install -g $node_modules echo "Creating the symlink for [now] command to vercel CLI" ln -s /usr/local/bin/vercel /usr/local/bin/now