当前位置:网站首页>Yarn 'TSC' is not an internal or external command, nor is it a runnable program or batch file. The problem that the command cannot be found after installing the global package
Yarn 'TSC' is not an internal or external command, nor is it a runnable program or batch file. The problem that the command cannot be found after installing the global package
2022-07-26 10:01:00 【Coexistence source of beauty and strength】
Use yarn Install a global package :
yarn global add typescript
Enter at the command line tsc command Enter error :
C:\Users\Administrator>tsc ‘tsc’ Not an internal or external command , It's not a runnable program Or batch files .
Solution :
yarn global bin obtain yarn Global installation package path , Add to system environment variables .
C:\Users\Administrator>yarn global bin
C:\Users\Administrator\AppData\Local\Yarn\bin
And then in cmd Input in tsc command , Now it can be used normally .
C:\Users\Administrator>tsc Version 3.5.3 Syntax: tsc [options]
[file…] Examples: tsc hello.ts
tsc --outFile file.js file.ts
tsc @args.txt
tsc --build tsconfig.json
After adding environment variables , The terminal needs to be restarted , Re execution tsc command
C:\Users\adminCc>tsc -v Version 4.7.41
边栏推荐
- Cloud native (36) | introduction and installation of harbor in kubernetes
- 【信息系统项目管理师】初见高项系列精华汇总
- Apple dominates, Samsung revives, and domestic mobile phones fail in the high-end market
- MySQL function
- Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken
- Azkaban [basic knowledge 01] core concepts + features +web interface + Architecture +job type (you can get started with Azkaban workflow scheduling system in one article)
- Flask框架初学-03-模板
- 汉诺塔II|汉诺塔4柱
- Solve the problem of storing cookies in IE7 & IE8
- Why does new public chain Aptos meet market expectations?
猜你喜欢

Production of a-modal drag function in antui

Due to fierce competition in the new market, China Mobile was forced to launch a restrictive ultra-low price 5g package

解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.

Development to testing: a six-year road to automation starting from 0

Wechat applet learning notes 1

R语言ggplot2可视化: 将图例标题(legend title)对齐到ggplot2中图例框的中间(默认左对齐、align legend title to middle of legend)

A new paradigm of distributed deep learning programming: Global tensor

R language ggplot2 visualization: align the legend title to the middle of the legend box in ggplot2 (default left alignment, align legend title to middle of legend)

SSG framework Gatsby accesses the database and displays it on the page

一种分布式深度学习编程新范式:Global Tensor
随机推荐
云原生(三十六) | Kubernetes篇之Harbor入门和安装
Basic usage of protobuf
Phpexcel export Emoji symbol error
AR model in MATLAB for short-term traffic flow prediction
MQTT X CLI 正式发布:强大易用的 MQTT 5.0 命令行工具
Leetcode 504. Hex number
Applet record
Netease cloud UI imitation -- & gt; sidebar
Vectortilelayer replacement style
IIS website configuration
Wechat H5 payment on WAP, for non wechat browsers
Wechat applet learning notes 2
[MySQL database] a collection of basic MySQL operations - the basis of seeing (adding, deleting, modifying, and querying)
面试突击68:为什么 TCP 需要 3 次握手?
新公链Aptos何以拉满市场期待值?
Flask框架初学-03-模板
2022年中科磐云——服务器内部信息获取 解析flag
PMM (percona monitoring and management) installation record
苹果独占鳌头,三星大举复兴,国产手机在高端市场颗粒无收
服务发现原理分析与源码解读