0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

anyenvでtscコマンドが効かない

Posted at

経緯

typescriptを使ってみようとして、インストール

npm install -g typescript

インストールはおわったっぽい

$HOME/.anyenv/envs/nodenv/versions/xxx/bin/tsc -> $HOME/.anyenv/envs/nodenv/versions/xxx/lib/node_modules/typescript/bin/tsc
$HOME/.anyenv/envs/nodenv/versions/xxx/bin/tsserver -> $HOME/.anyenv/envs/nodenv/versions/xxx/lib/node_modules/typescript/bin/tsserver
+ typescript@5.3.3
added 1 package from 1 contributor in 0.797s

tscコマンドをたたくと

tsc xxx.ts
zsh: command not found: tsc

コマンドがみつからない

原因

パスの問題だけど下記コマンドで解決

nodenv rehash

参考ページ

Anyenv(nodeenv)でTypeScriptを動かす

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?