nakama-js icon indicating copy to clipboard operation
nakama-js copied to clipboard

Javascript - Investigate why `npx typescript` fails on certain machines whereas `npx tsc` succeeds

Open lugehorsam opened this issue 3 years ago • 1 comments

lugehorsam avatar Aug 11 '21 15:08 lugehorsam

npx has somewhat indeterminate behavior depending on your npm version, globals and your node_modules. For example;

npm 7:

  • no node_modules, install and run the npm module tsc which I recently deprecated with error messages
  • no node_modules but has typescript globally installed (unlikely on CI) then run the global version of tsc
  • node_modules installed, with TypeScript in the deps: run tsc correctly

npm 8 should bail on the top state asking if you want to install the npm module tsc.

Personally, I'd recommend yarn or pnpm which doesn't have this sort of confusing UX

orta avatar Dec 26 '21 10:12 orta

@lugehorsam this one is related to https://github.com/heroiclabs/nakama-js/issues/138

Maybe could be closed since npx typescript has been updated to npx tsc?

jackunion avatar Apr 24 '23 11:04 jackunion