分类:nodejs

nodejs笔记

yarn的安装

yarn的安装
下载node.js,使用npm安装 npm install -g yarn 查看版本: yarn --version Yarn 淘宝源安装 yarn config set registry https://registry.npm.taobao.org -g yarn con...

yekong 3年前 (2021-09-02) 喜欢

使用cnpm代替npm

使用cnpm代替npm
安装并设置cnpm的镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org CNPM工具 由于一些特殊的原因,某些情况下我们没办法很好的从 https://registry.npmjs.org下载下来一...

yekong 3年前 (2021-09-02) 喜欢

NPM设置国内源

NPM设置国内源
查看当前镜像 npm get registry 设置为淘宝镜像 npm config set registry https://registry.npm.taobao.org/ 官方镜像 npm config set registry https://registry.n...

yekong 3年前 (2021-09-02) 喜欢

Yarn设置国内源

Yarn设置国内源
查看当前镜像 yarn config get registry 设置为淘宝镜像 yarn config set registry https://registry.npm.taobao.org/ 设置为官方镜像 yarn config set registry https:/...

yekong 3年前 (2021-09-02) 喜欢

Yarn是什么?

Yarn是什么?
Yarn是什么? “Yarn是由Facebook、Google、Exponent 和 Tilde 联合推出了一个新的 JS 包管理工具 ,正如官方文档中写的,Yarn 是为了弥补 npm 的一些缺陷而出现的。”这句话让我想起了使用npm时的坑了: npm install的时候慢。...

yekong 3年前 (2021-09-02) 喜欢