Node.js
Node.js 相关的一些技术博文
勇敢的阿呆
该奋斗的年纪,不要选择安逸。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
发布属于自己的npm包
什么是 NPM 发布教程 1. 去 NPM 官网注册账号 2. 初始化项目 $ npm init This 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 · 288 阅读 · 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 · 1852 阅读 · 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 · 283 阅读 · 0 评论 -
Mac 升级 Nodejs
Mac 中把 Nodejs 和 npm 升级到最新版本。 node -v npm -v sudo npm cache clean -f sudo npm install -g n sudo n stable sudo npm install npm@latest -g node -v npm -v原创 2020-08-10 18:23:46 · 367 阅读 · 0 评论
分享