使用終端命令?npm -v
這里需要使用到npm npm node.js安裝包自帶
去官網(wǎng)?Node.js — Download下載對應(yīng)版本安裝
1.npm config set registry https://registry.npmmirror.com
2.npm install -g typescript
error:
????????
npm notice?
npm notice New minor version of npm available! 10.2.4 -> 10.3.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.3.0
npm notice Run npm install -g npm@10.3.0 to update!
npm notice?
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/typescript
npm ERR! errno -13文章來源:http://www.zghlxwxcb.cn/news/detail-802363.html
npm ERR! Error: EACCES: permission denied, mkdir '/usr/loca文章來源地址http://www.zghlxwxcb.cn/news/detail-802363.html
到了這里,關(guān)于Type Script 安裝 NPM 安裝的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!