![](https://img-blog.csdnimg.cn/20200927144130970.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Node.js
Node.js 相关的一些技术博文
勇敢的阿呆
该奋斗的年纪,不要选择安逸。
展开
-
发布属于自己的npm包
什么是 NPM发布教程1. 去 NPM 官网注册账号2. 初始化项目$ npm initThis utility will walk you through creating a package.json file.It only covers the most common items, and tries to guess sensible defaults.See `npm help init` for definitive documentation on these field原创 2021-07-25 15:51:21 · 131 阅读 · 0 评论 -
npm安装包时太慢怎么办?使用淘宝镜像站 or 切换官方镜像站
当使用 npm install <package> 时,由于 NPM 默认镜像站是在国外的原因,会导致下载速度非常慢,甚至下载失败。可以切换为国内的 淘宝镜像站临时使用(仅对本次有效)npm install <package> --registry https://registry.npm.taobao.org/长期使用(推荐,如果需要 发布 NPM 包 的话,不能使用这种配置,需要改回原镜像源)npm config set registry https://regist原创 2021-07-25 15:18:28 · 1565 阅读 · 0 评论 -
CentOS 安装 NodeJS
Step 1拉取 Node 的 repo 源(示例版本为 12.x LTS)其他版本$ sudo curl -sL https://rpm.nodesource.com/setup_lts.x | bash -执行完以上内容之后,会在 /etc/yum.repo.d/ 目录下出现一个名为 nodesource-elx.repo 的文件。Step 2安装$ yum install nodejs...原创 2020-09-27 15:35:02 · 142 阅读 · 0 评论 -
Mac 升级 Nodejs
Mac 中把 Nodejs 和 npm 升级到最新版本。node -vnpm -vsudo npm cache clean -fsudo npm install -g nsudo n stablesudo npm install npm@latest -gnode -vnpm -v原创 2020-08-10 18:23:46 · 261 阅读 · 0 评论