-
Notifications
You must be signed in to change notification settings - Fork 788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: No preset version installed for command tsc #1631
Comments
Version I began having this on: $> asdf --version
v0.11.0-6a4f51a I did |
$> npm i -g tsc
~/.asdf/installs/nodejs/14.16.1/bin/tsc -> ~/.asdf/installs/nodejs/14.16.1/lib/node_modules/tsc/bin/tsc
+ [email protected]
added 1 package from 1 contributor in 0.09s
Reshimming asdf nodejs... got me past preset and now it's saying $> npm run tsc
> [email protected] tsc ~/projects/shared/uif
> tsc
This is not the tsc command you are looking for
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
npm ERR! code ELIFECYCLE
npm ERR! errno 1 Which is peculiar. I have been running this build even yesterday and it went through without a hiccup. I'm QUITE sure Typescript is there. EDIT: Ah. Of course. It indeed is NOT the
|
I found #928 and must say, I'm MUCH in favour. Better error message would be great to have, esp. one with a Wiki page or a GH issue link explaining the problem and some of the solutions. #914 was helpful to even make me thing of shims and re-shimming and manual edition of shim files, which led me to "no binary", which led me to installing |
The @LIttleAncientForestKami Are you okay with me closing this since #928 already captures your desired fix and you found a resolution to your immediate problem? |
@jthegedus let me do it instead, so you don't have to open this again. And thank you again for the work on the tool. "Closing with comment" now... |
Describe the Bug
asdf wants me to install nodejs that's already installed. Reshim does NOT help.
Steps to Reproduce
Steps 1 or 2 give me the error. Rest is me trying to fix, but to no avail.
Shim
tsc
contentsI also manually added a line
# asdf-plugin: nodejs 14.16.1
and:asdf reshim nodejs
removed that lineExpected Behaviour
Build proceeding with tsc normally, since nodejs 14.16.1 is installed.
Actual Behaviour
Environment
asdf plugins affected (if relevant)
nodejs
The text was updated successfully, but these errors were encountered: