当前位置:网站首页>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
边栏推荐
- [information system project manager] summary of essence of high-level series for the first time
- Flask框架初学-03-模板
- JS continuous assignment operation
- Study notes of the third week of sophomore year
- Transform between tree and array in JS (hide the children field if the child node of the tree is empty)
- 分布式网络通信框架:本地服务怎么发布成RPC服务
- Installation and use of cocoapods
- Wechat H5 payment on WAP, for non wechat browsers
- 云原生(三十六) | Kubernetes篇之Harbor入门和安装
- (1) Hand eye calibration of face scanner and manipulator (eye on hand)
猜你喜欢
Flask框架初学-04-flask蓝图及代码抽离
Alibaba cloud technology expert haochendong: cloud observability - problem discovery and positioning practice
The problem of accessing certsrv after configuring ADCs
2021年山东省中职组“网络空间安全”B模块windows渗透(解析)
Transform between tree and array in JS (hide the children field if the child node of the tree is empty)
2021 windows penetration of "Cyberspace Security" B module of Shandong secondary vocational group (analysis)
[datawhale] [machine learning] Diabetes genetic risk detection challenge
30分钟彻底弄懂 synchronized 锁升级过程
Matlab Simulink realizes fuzzy PID control of time-delay temperature control system of central air conditioning
Principle analysis and source code interpretation of service discovery
随机推荐
Sqoop [put it into practice 02] sqoop latest version full database import + data filtering + field type support description and example code (query parameter and field type forced conversion)
[MySQL database] a collection of basic MySQL operations - the basis of seeing (adding, deleting, modifying, and querying)
【信息系统项目管理师】初见高项系列精华汇总
I finished watching this video on my knees at station B
R语言ggplot2可视化: 将图例标题(legend title)对齐到ggplot2中图例框的中间(默认左对齐、align legend title to middle of legend)
Docker configuring MySQL Cluster
Explain automatic packing and unpacking?
Unstoppable, pure domestic PCs have been in place, and the monopoly of the U.S. software and hardware system has been officially broken
Interview shock 68: why does TCP need three handshakes?
Wechat H5 payment on WAP, for non wechat browsers
Learning notes: what are the common array APIs that change the original array or do not change the original array?
Study notes of the fifth week of sophomore year
[information system project manager] summary of essence of high-level series for the first time
Solve proxyerror: CONDA cannot proceed due to an error in your proxy configuration
30分钟彻底弄懂 synchronized 锁升级过程
Solve the problem of storing cookies in IE7 & IE8
Flutter event distribution
新增市场竞争激烈,中国移动被迫推出限制性超低价5G套餐
Basic knowledge of website design
[datawhale] [machine learning] Diabetes genetic risk detection challenge