question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

oh oh Error: EACCES: permission denied, open '/usr/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash'

See original GitHub issue

This 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:open
  • Created 6 years ago
  • Reactions:2
  • Comments:18

github_iconTop GitHub Comments

5reactions
zenlorcommented, Mar 5, 2018

Shall we stop editing people’s shell configurations without explicitly asking for it?

https://github.com/serverless/serverless/issues/4069

3reactions
ItuTcommented, Jun 21, 2020

User this:

sudo npm install -g --unsafe-perm=true --allow-root serverless

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found