Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Doing npx tsconfig.json creates a file, but doesn't prompt me to choose the framework I'm using #47

Open
georgeisamazed opened this issue Jan 24, 2022 · 4 comments

Comments

@georgeisamazed
Copy link

georgeisamazed commented Jan 24, 2022

It should let me choose between react, react native or node (as per this video https://www.youtube.com/watch?v=I6ypD7qv3Z8&t=296s) but it only create a file with the following


#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node" ]; then
  "$basedir/node"  "$basedir/../tsconfig.json/src/index.js" "$@"
  ret=$?
else 
  node  "$basedir/../tsconfig.json/src/index.js" "$@"
  ret=$?
fi
exit $ret
@daedadev
Copy link

daedadev commented Mar 4, 2022

I am also experiencing the same problem, the solution is found in issue #18

@OmgImAlexis
Copy link

Related npm/cli#4445 and npm/exec#17

@OmgImAlexis
Copy link

The work around is to install it globally and then manually call the file like so.

npm i -g tsconfig.json
C:\"Program Files"\nodejs\tsconfig.json.cmd

@raditya26
Copy link

The work around is to install it globally and then manually call the file like so.

npm i -g tsconfig.json
C:\"Program Files"\nodejs\tsconfig.json.cmd

This work thanks!

Here's what I did in the terminal:

npm i -g tsconfig.json
npx tsconfig.json.cmd

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants