Forum Home
Help
Bugs
Search
Bookmarks
Download
Donate
Shop
Staff
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
You are Here:
Linux Lite Forums
»
Development
»
Coding
»
why does npm install encounter with permission denied error on LinuxLite?
Linux Lite 7.0 RC1 Released - See Release Announcement Section
why does npm install encounter with permission denied error on LinuxLite?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
(Read 109146 times)
0 Members and 2 Guests are viewing this topic.
why does npm install encounter with permission denied error on LinuxLite?
«
Reply #1 on:
January 14, 2022, 01:58:39 AM »
navid_dada
New to Forums
1
Posts
Reputation: 0
Linux Lite Member
CPU: corei3
MEMORY: 8Gb
I am using LinuxLite V5 and I am trying to clone one repository from git using npm V8.3.0 but it throws this exception:
fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone7tt2X1': Permission denied
I try all of these commands but no progress!!!
npm i -g
https://github.com/nextcloud/strengthify
npm i
https://github.com/nextcloud/strengthify
sudo npm i -g
https://github.com/nextcloud/strengthify
sudo npm i
https://github.com/nextcloud/strengthify
npm install --prefix=$HOME/.local --global
https://github.com/MorrisJobke/strengthify.git
sudo npm install --prefix=$HOME/.local --global
https://github.com/MorrisJobke/strengthify.git
I also run all of these commands in sudo su mode but there was not any progress.
I also checked folder owner and group and permissions. it is the result:
drwxrwxrwx 6 root root 4096 jun 13 14:50 .npm
How can I solve this problem?
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Linux Lite Forums
»
Development
»
Coding
»
why does npm install encounter with permission denied error on LinuxLite?
-->
X Close Ad
Linux Lite 7.0 RC1 Released - See Release Announcement Section