oh oh Error: EACCES: permission denied, open '/usr/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash'
See original GitHub issueThis is a Bug Report
Description
Updating Serverless under the Windows Subsystem for Linux I am getting the following output that includes an error message:
$sudo npm install -g serverless
/usr/bin/serverless -> /usr/lib/node_modules/serverless/bin/serverless
/usr/bin/sls -> /usr/lib/node_modules/serverless/bin/serverless
/usr/bin/slss -> /usr/lib/node_modules/serverless/bin/serverless
> serverless@1.25.0 postinstall /usr/lib/node_modules/serverless
> node ./scripts/postinstall.js
oh oh Error: EACCES: permission denied, open '/usr/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash'
Could not auto-install serverless autocomplete script.
Please copy / paste the script above into your shell.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β serverless update check failed β
β Try running with sudo or get access β
β to the local update config store via β
β sudo chown -R $USER:$(id -gn $USER) /home/nickw/.config β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+ serverless@1.25.0
updated 1 package in 18.653s
Running sudo chown -R $USER:$(id -gn $USER) /home/nickw/.config
and repeating the sudo npm install -g serverless
does not fix the problem.
For bug reports:
-
oh oh Error: EACCES: permission denied, open β/usr/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bashβ
-
Serverless Framework Version youβre using: 1.25.0
-
Operating System: Ubuntu 16.04 LTS under the Windows Subsystem for Linux (WSL)
-
Stack Trace:
-
Provider Error messages: oh oh Error: EACCES: permission denied, open β/usr/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bashβ
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:18
Top Results From Across the Web
EACCES: permission denied, access '/usr/lib/node_modules ...
I am trying install typescript with command npm install -g typescript , and it returns this error:
Read more >Developers - oh oh Error: EACCES: permission denied, open '/usr ...
oh oh Error : EACCES: permission denied, open '/usr/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash'
Read more >Linux / Unix Find Command Avoid Permission Denied ...
Explains how to fix find: dirName: Permission denied command warning/error by hiding and redirecting the output to /dev/null underΒ ...
Read more >How to Fix Shell Script Permission Denied Error in Linux
Linux and other such OSs are very much concerned about its' security. Only the users with βSudoβ privileges or βrootβ has full access...
Read more >cause of file i/o operation failure = -1 EACCES (Permission ...
Then the udev rule kicks in and udev calls sh to set the permissions, but that takes a while; if you try the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Shall we stop editing peopleβs shell configurations without explicitly asking for it?
https://github.com/serverless/serverless/issues/4069
User this:
sudo npm install -g --unsafe-perm=true --allow-root serverless