core-js postinstall error when installing with npx on a snap env
See original GitHub issueCurrent Behavior
- Follow quickstart:
$ sudo npx tsdx create mylib
- Get error message:
2020/10/06 18:41:27.713057 cmd_run.go:991: WARNING: cannot create user data directory: cannot create "/nonexistent/snap/node/3128": mkdir /nonexistent: permission denied
cannot create user data directory: /nonexistent/snap/node/3128: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! core-js-pure@3.6.5 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the core-js-pure@3.6.5 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Expected behavior
An installation of the project mylib.
Suggested solution(s)
Unsure
Additional context
I recently did a clean install of Linux Mint 20 along with Node version 12.19.0.
Your environment
npx: installed 1 in 0.86s
System:
OS: Linux 5.4 Linux Mint 20 (Ulyana)
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Memory: 1.47 GB / 15.52 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Browsers:
Chrome: 86.0.4240.75
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
core-js postinstall error when installing tsdx in a node snap env
Hello, I'm getting the folowing error by installing tsdx globaly. Nodejs runs on my system in a snap package, thats probably the reason...
Read more >Node snap permission issues when installing global packages
I was recently installing a global package with the node snap and the installation had issues trying to create nonexistent directories.
Read more >Failed at the core-js postinstall script error - Stack Overflow
This error means that the postinstall script is fork -and- exec 'ing bash , which is not present on Windows. You need to...
Read more >Installation npm install error - Sharetribe Go Community Edition
When you run npm install in the root, it doesn't actually do much. It only cd s to the client directory and runs...
Read more >Installing Node.js via package manager
Node.js LTS and npm packages are available in the Main Repository. ... with Debian and Ubuntu based Linux distributions are available via Node.js...
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 FreeTop 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
Top GitHub Comments
Can you please explain why you closed this? I’m reading #792 (which is closed), but not finding a solution. This seems to be an active bug.
As someone new to TSDX, this is not a great “first impression.” I’m following your QuickStart documentation to the letter, and TSDX consistently crashes. Is there a solution, or should I just avoid TSDX?
FYI, this dependency is more than 4 levels upstream:
eslint-plugin-jsx-a11y
isn’t even a direct dependency itself, it’s a peerDep ofeslint-config-react-app
, so you could even consider that as 5 levels upstream.