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.

core-js postinstall error when installing with npx on a snap env

See original GitHub issue

Current Behavior

  1. Follow quickstart:
$ sudo npx tsdx create mylib
  1. 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
RobJacobsoncommented, Oct 7, 2020

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?

0reactions
agilgur5commented, Oct 9, 2020

FYI, this dependency is more than 4 levels upstream:

$ npm ls core-js-pure
tsdx@0.14.0 /Users/...
└─┬ eslint-plugin-jsx-a11y@6.2.3
  └─┬ axobject-query@2.1.1
    └─┬ @babel/runtime-corejs3@7.7.4
      └── core-js-pure@3.4.7 

eslint-plugin-jsx-a11y isn’t even a direct dependency itself, it’s a peerDep of eslint-config-react-app, so you could even consider that as 5 levels upstream.

Read more comments on GitHub >

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

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