LoginSignup
3
0

More than 3 years have passed since last update.

npm run tscした時にnpm ERR! missing script: tscと出た時の対処法

Posted at

現象

typescriptの環境構築をやっていたらnpm ERR! missing script: tscというエラーが出た

解決策

package.jsonの中にある記述を下記のように変更

package.json

"scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "tsc": "tsc"  //この行を追加
  },

tscはtypescriptのコンパイラを示しています。

意外と単純なところで引っかかることもあるんですね。

3
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
3
0