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.

Running npx tsconfig.json opens a bash script (WIndows)

See original GitHub issue

The ouput:

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

case `uname` in
    *CYGWIN*|*MINGW*|*MSYS*) 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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

8reactions
BronzWcommented, Apr 20, 2021

How to fix:

  1. Navigate to where Yarn or NPM has their bin (For yarn C:/Users/username/AppData/Local/Yarn/bin and npm C:/Users/username/AppData/Roaming/npm) (thanks kevincharless))
  2. Rename the tsconfig.json and tsconfig.json.cmd to tsconfig and tsconfig.cmd
  3. Run it locally as just tsconfig and it should work (npx tsconfig.json wont) image
7reactions
davidkhierlcommented, Feb 3, 2021

same here as well 👀

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I generate a tsconfig.json file? - Stack Overflow
the Normal way to generate the tsconfig file is to create a file with a name tsconfig.json then open {} ,inside this {}...
Read more >
TypeScript Compiling with Visual Studio Code
A tsconfig.json file defines the TypeScript project settings, such as the compiler options and the files that should be included. To do this,...
Read more >
How To Run TypeScript Scripts with ts-node - DigitalOcean
In this article you will learn how to run TypeScript scripts without the hassle of manually transpiling.
Read more >
tsc command not found TypeScript error [Solved] | bobbyhadz
To solve the error "tsc: command not found", install the typescript package globally by running npm install typescript@latest -g or use the npx...
Read more >
How to Write Shell Scripts in Node with Google's zx Library
But if you've tried writing a shell script to run under Node.js, ... We need to create a tsconfig.json file containing the following ......
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