Typescript 未使用 npm 安装

问题描述 投票:0回答:1

我正在开始学习 Typescript 教程。

这样做是为了使用 npm 全局安装它

npm i typescript -g

但是,它在安装时卡在第一行并显示此 -

(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠦ idealTree:lib: sill idealTree buildDeps

请告诉如何解决这个问题?

我尝试在网上查找,但没有发现任何重要信息。

node.js typescript npm installation npm-install
1个回答
0
投票

更新 npm: npm install -g npm@latest

清除npm缓存: npm 缓存清理 --force

运行 npm install 并输出详细信息: npm install typescript -g --verbose

© www.soinside.com 2019 - 2024. All rights reserved.