jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.22k stars 507 forks source link

Project creation does not work on Node 15 #979

Closed dimas-cyriaco closed 3 years ago

dimas-cyriaco commented 3 years ago

Current Behavior

Project creation errors with code ETARGET.

$ npx tsdx create mylib
Need to install the following packages:
  tsdx
Ok to proceed? (y) y
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @babel/plugin-proposal-json-strings@^7.13.8.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dimascyriaco/.npm/_logs/2021-02-27T19_14_29_746Z-debug.log

Expected behavior

Expected the project to be created.

Your environment

Could not run inside project for obvious reason. Here is the output running at $HOME.

System:
    OS: macOS 11.2.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 678.96 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.9.0 - ~/.nvm/versions/node/v15.9.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.5.3 - ~/.nvm/versions/node/v15.9.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 88.0.4324.192
    Safari: 14.0.3
dimas-cyriaco commented 3 years ago

I tried changing node to version 14 (via nvm) and it worked. Don't know if the problem is with node 15 or the nvm installation, but I was having problems with other npx commands, too.

Closing this.