Mageia Bugzilla – Attachment 13210 Details for
Bug 30220
Permission issue in /usr/lib/node_modules when trying to install yarn globally
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Output from trying to install yarn plus equivalent info
Installation error for yarn (text/plain), 3.67 KB, created by
Kristoffer Grundström
on 2022-03-29 22:59:09 CEST
(
hide
)
Description:
Output from trying to install yarn plus equivalent info
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2022-03-29 22:59:09 CEST
Size:
3.67 KB
patch
obsolete
>npm WARN checkPermissions Missing write access to /usr/lib/node_modules >npm ERR! code EACCES >npm ERR! syscall access >npm ERR! path /usr/lib/node_modules >npm ERR! errno -13 >npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules' >npm ERR! [Error: EACCES: permission denied, access '/usr/lib/node_modules'] { >npm ERR! errno: -13, >npm ERR! code: 'EACCES', >npm ERR! syscall: 'access', >npm ERR! path: '/usr/lib/node_modules' >npm ERR! } >npm ERR! >npm ERR! The operation was rejected by your operating system. >npm ERR! It is likely you do not have the permissions to access this file as the current user >npm ERR! >npm ERR! If you believe this might be a permissions issue, please double-check the >npm ERR! permissions of the file and its containing directories, or try running >npm ERR! the command again as root/Administrator. > >npm ERR! A complete log of this run can be found in: >npm ERR! /home/kristoffer/.npm/_logs/2022-03-29T20_48_39_331Z-debug.log > >Output from /home/kristoffer/.npm/_logs/2022-03-29T20_48_39_331Z-debug.log can be read here: > >[kristoffer@localhost ~]$ cat /home/kristoffer/.npm/_logs/2022-03-29T20_48_39_331Z-debug.log >0 info it worked if it ends with ok >1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '--global', 'yarn' ] >2 info using npm@6.14.15 >3 info using node@v14.18.3 >4 verbose npm-session 23b56d2cf0cab72f >5 silly install loadCurrentTree >6 silly install readGlobalPackageData >7 http fetch GET 200 https://registry.npmjs.org/yarn 377ms >8 http fetch GET 200 https://registry.npmjs.org/yarn/-/yarn-1.22.18.tgz 275ms >9 silly pacote tag manifest for yarn@latest fetched in 732ms >10 timing stage:loadCurrentTree Completed in 816ms >11 silly install loadIdealTree >12 silly install cloneCurrentTreeToIdealTree >13 timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms >14 silly install loadShrinkwrap >15 timing stage:loadIdealTree:loadShrinkwrap Completed in 7ms >16 silly install loadAllDepsIntoIdealTree >17 silly resolveWithNewModule yarn@1.22.18 checking installable status >18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 22ms >19 timing stage:loadIdealTree Completed in 35ms >20 silly currentTree lib >21 silly idealTree lib >21 silly idealTree âââ yarn@1.22.18 >22 silly install generateActionsToTake >23 warn checkPermissions Missing write access to /usr/lib/node_modules >24 timing stage:rollbackFailedOptional Completed in 2ms >25 timing stage:runTopLevelLifecycles Completed in 878ms >26 verbose stack Error: EACCES: permission denied, access '/usr/lib/node_modules' >27 verbose cwd /home/kristoffer >28 verbose Linux 5.15.28-desktop-1.mga8 >29 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--global" "yarn" >30 verbose node v14.18.3 >31 verbose npm v6.14.15 >32 error code EACCES >33 error syscall access >34 error path /usr/lib/node_modules >35 error errno -13 >36 error Error: EACCES: permission denied, access '/usr/lib/node_modules' >36 error [Error: EACCES: permission denied, access '/usr/lib/node_modules'] { >36 error errno: -13, >36 error code: 'EACCES', >36 error syscall: 'access', >36 error path: '/usr/lib/node_modules' >36 error } >37 error The operation was rejected by your operating system. >37 error It is likely you do not have the permissions to access this file as the current user >37 error >37 error If you believe this might be a permissions issue, please double-check the >37 error permissions of the file and its containing directories, or try running >37 error the command again as root/Administrator. >38 verbose exit [ -13, true ] > >[kristoffer@localhost ~]$ npm --version >6.14.15 >[kristoffer@localhost ~]$ node --version >v14.18.3 > >[kristoffer@localhost ~]$ ls -l /usr/lib/node_modules/ >totalt 4 >drwxr-xr-x 8 root root 4096 mar 29 22:47 npm/
npm WARN checkPermissions Missing write access to /usr/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/lib/node_modules npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/lib/node_modules' npm ERR! [Error: EACCES: permission denied, access '/usr/lib/node_modules'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/lib/node_modules' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! /home/kristoffer/.npm/_logs/2022-03-29T20_48_39_331Z-debug.log Output from /home/kristoffer/.npm/_logs/2022-03-29T20_48_39_331Z-debug.log can be read here: [kristoffer@localhost ~]$ cat /home/kristoffer/.npm/_logs/2022-03-29T20_48_39_331Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '--global', 'yarn' ] 2 info using npm@6.14.15 3 info using node@v14.18.3 4 verbose npm-session 23b56d2cf0cab72f 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 http fetch GET 200 https://registry.npmjs.org/yarn 377ms 8 http fetch GET 200 https://registry.npmjs.org/yarn/-/yarn-1.22.18.tgz 275ms 9 silly pacote tag manifest for yarn@latest fetched in 732ms 10 timing stage:loadCurrentTree Completed in 816ms 11 silly install loadIdealTree 12 silly install cloneCurrentTreeToIdealTree 13 timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms 14 silly install loadShrinkwrap 15 timing stage:loadIdealTree:loadShrinkwrap Completed in 7ms 16 silly install loadAllDepsIntoIdealTree 17 silly resolveWithNewModule yarn@1.22.18 checking installable status 18 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 22ms 19 timing stage:loadIdealTree Completed in 35ms 20 silly currentTree lib 21 silly idealTree lib 21 silly idealTree âââ yarn@1.22.18 22 silly install generateActionsToTake 23 warn checkPermissions Missing write access to /usr/lib/node_modules 24 timing stage:rollbackFailedOptional Completed in 2ms 25 timing stage:runTopLevelLifecycles Completed in 878ms 26 verbose stack Error: EACCES: permission denied, access '/usr/lib/node_modules' 27 verbose cwd /home/kristoffer 28 verbose Linux 5.15.28-desktop-1.mga8 29 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--global" "yarn" 30 verbose node v14.18.3 31 verbose npm v6.14.15 32 error code EACCES 33 error syscall access 34 error path /usr/lib/node_modules 35 error errno -13 36 error Error: EACCES: permission denied, access '/usr/lib/node_modules' 36 error [Error: EACCES: permission denied, access '/usr/lib/node_modules'] { 36 error errno: -13, 36 error code: 'EACCES', 36 error syscall: 'access', 36 error path: '/usr/lib/node_modules' 36 error } 37 error The operation was rejected by your operating system. 37 error It is likely you do not have the permissions to access this file as the current user 37 error 37 error If you believe this might be a permissions issue, please double-check the 37 error permissions of the file and its containing directories, or try running 37 error the command again as root/Administrator. 38 verbose exit [ -13, true ] [kristoffer@localhost ~]$ npm --version 6.14.15 [kristoffer@localhost ~]$ node --version v14.18.3 [kristoffer@localhost ~]$ ls -l /usr/lib/node_modules/ totalt 4 drwxr-xr-x 8 root root 4096 mar 29 22:47 npm/
View Attachment As Raw
Actions:
View
Attachments on
bug 30220
: 13210