Latest Version Fails Post install when permissions are tight
See original GitHub issueThis is a Bug Report
Description
For bug reports:
-
What went wrong? Post install for serverless fails
-
What did you expect should have happened? Post install to complete
-
What was the config you used? N/A
-
What stacktrace or error message from your provider did you see?
> serverless@1.15.1 postinstall /usr/local/lib/node_modules/serverless
> node ./scripts/postinstall.js
/usr/local/lib/node_modules/serverless/node_modules/write-file-atomic/index.js:132
throw err
^
Error: EACCES: permission denied, open '/root/.serverlessrc.3405600948'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Function.writeFileSync [as sync] (/usr/local/lib/node_modules/serverless/node_modules/write-file-atomic/index.js:117:17)
at createConfig (/usr/local/lib/node_modules/serverless/lib/utils/config/index.js:30:19)
at getConfig (/usr/local/lib/node_modules/serverless/lib/utils/config/index.js:44:5)
at Object.get (/usr/local/lib/node_modules/serverless/lib/utils/config/index.js:90:18)
at isTrackingDisabled (/usr/local/lib/node_modules/serverless/lib/utils/isTrackingDisabled.js:6:22)
at Object.<anonymous> (/usr/local/lib/node_modules/serverless/lib/utils/segment.js:9:30)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/local/lib/node_modules/serverless/lib/classes/Utils.js:14:17)
Similar or dependent issues:
Additional Data
This is failing on circleci 2.0 where permission are apparently too strict.
- Serverless Framework Version you’re using: 1.15
- Operating System: Debian
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Error installing R packages: permission denied [R]
I recently updated both R (4.0.2) and RStudio (1.3.1073) installations on my computer (Windows 8.1 64bit). Then, I ran some old code and...
Read more >Permission error on postinstall from App Store - Ask Different
I'm trying to install an application using the App Store on Mavericks. The download succeeds, but the install hangs at the very end...
Read more >NVIDIA CUDA Installation Guide for Linux
The installation instructions for the CUDA Toolkit on Linux.
Read more >Allow apps to specify optional permissions in the manifest
In many cases, applications request permissions that are noncritical for basic functionality in order to provide the user with maximum convenience.
Read more >Frequently Asked Questions about the GNU Licenses
Does the GPL require that source code of modified versions be posted to the ... a certain program can be used only under...
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
@jtslear @abalone0204 temporary fix by doing:
Investigating root cause. Thanks to @alexdebrie for temp workaround.
The root cause of this problem is described here: https://stackoverflow.com/questions/25011703/write-file-in-home-directory-when-running-npm-install