#npx tsc not working

8 messages · Page 1 of 1 (latest)

raven swift
#

I run: npx tsc

it gives me:



To get access to the TypeScript compiler, tsc, from the command line either:

- Use npm install typescript to first add TypeScript to your project before using npx
- Use yarn to avoid accidentally running code from un-installed packages```

How do I fix this? I installed typescript already
last leaf
raven swift
#

I just did npm i typescript to install typescript

last leaf
#

And it still gives you that error after doing that?

raven swift
#

yes

last leaf
#

Maybe the tsc package is still installed. Might try removing it (or just remove node_modules and install again)

raven swift
#

Will look

#

I removed node_modules, tsc wasn't installed, but now it works! Thank you retsam