From 9928f750379397397529ed9709f7d29dc887ea82 Mon Sep 17 00:00:00 2001 From: Mariano Sciacco <34033090+Maxelweb@users.noreply.github.com> Date: Mon, 15 Nov 2021 19:11:42 +0100 Subject: [PATCH] add npm info permission error --- npm/npm-error-permission.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 npm/npm-error-permission.txt diff --git a/npm/npm-error-permission.txt b/npm/npm-error-permission.txt new file mode 100644 index 0000000..9ed95f1 --- /dev/null +++ b/npm/npm-error-permission.txt @@ -0,0 +1,21 @@ +Checkout this: https://stackoverflow.com/a/55274930 + + $ mkdir ~/.npm-global + +Configure npm to use the new directory path: + + $ npm config set prefix '~/.npm-global' + +In your preferred text editor, open or create a + + ~/.profile + +file and add this line: + + export PATH=~/.npm-global/bin:$PATH + +On the command line, update your system variables: + + source ~/.profile + +