You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ node -v
v17.0.1
❯ npm -v
8.1.0
❯ yarn -v
3.1.0
❯ yarn add typescript
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 437ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ typescript@npm:4.4.4 can't be found in the cache and will be fetched from the remote registry➤ YN0013: │ typescript@patch:typescript@npm%3A4.4.4#~builtin<compat/typescript>::version=4.4.4&hash=ddd1e8 can't be
➤ YN0000: └ Completed in 0s 725ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done in 1s 254ms
❯ tsc -v
tsc: The term 'tsc' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
❯ yarn run tsc -v
Version 4.4.4
If I execute tsc -v directly in Powershell Core, it will throw out an error. But if I invoke yarn run tsc -v, it does response the version of TypeScript as I expected. Note: I didn't configure tsc for scripts in package.json (details stored here).
I'm using Plug'n'Play and Zero-Install features from Yarn v3.1.0, is there something wrong with my configurations? Should I install TypeScript to global environment with yarn dlx add typescript or yarn global add typescript ?
I also met the same problem.
If I execute
tsc -v
directly in Powershell Core, it will throw out an error. But if I invokeyarn run tsc -v
, it does response the version of TypeScript as I expected. Note: I didn't configuretsc
forscripts
inpackage.json
(details stored here).I'm using Plug'n'Play and Zero-Install features from Yarn v3.1.0, is there something wrong with my configurations? Should I install TypeScript to global environment with
yarn dlx add typescript
oryarn global add typescript
?Originally posted by @Dragon1573 in yarnpkg/yarn#648 (comment)
The text was updated successfully, but these errors were encountered: