代码改变世界

随笔分类 -  Node

yarn安装依赖时报错certificate has expired at TLSSocket.onConnectSecure

2024-05-11 16:12 by Bughra, 44 阅读, 收藏, 编辑
摘要: nodejs 关闭ssl证书 阅读全文

Husky中文文档

2023-08-17 15:50 by Bughra, 397 阅读, 收藏, 编辑
摘要: Husky 能让你更简单地使用Git hooks。它能阻止不合格的git commit,git push操作。webpack、babel、create-react-app、antd都使用了husky。 网上基本还没有husky的中文文档。 鉴于此,Breword 翻译团队对其最新版本的文档进行了翻译 阅读全文

nvm 设置国内镜像

2023-06-09 11:38 by Bughra, 6069 阅读, 收藏, 编辑
摘要: 设置npm_mirror: nvm npm_mirror https://npmmirror.com/mirrors/npm/ 设置node_mirror: nvm node_mirror https://npmmirror.com/mirrors/node/ Linux下 nvm ls-remot 阅读全文

忽略node版本号

2022-08-17 23:00 by Bughra, 346 阅读, 收藏, 编辑
摘要: 在cpm输入运行以下命令: yarn config set ignore-engines true 阅读全文

修复JavaScript module script but the server responded with a MIME type of "text/plain" 错误

2022-03-29 14:35 by Bughra, 5232 阅读, 收藏, 编辑
摘要: 错误信息: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type ch 阅读全文

Win7安装Node16

2022-03-29 14:24 by Bughra, 1207 阅读, 收藏, 编辑
摘要: 跳过版本号检查 set NODE_SKIP_PLATFORM_CHECK=1 阅读全文

npm 安装私有 git 包

2022-02-15 15:45 by Bughra, 174 阅读, 收藏, 编辑
摘要: 安装包: npm install git+https://gitee.com/nodejs/koatest.git 开发阶段安装master分支: npm i git+https://username:password@git.example.com/path/reposity#master 安装t 阅读全文

Nodejs历史版本下载地址

2022-02-15 15:41 by Bughra, 10673 阅读, 收藏, 编辑
摘要: Nodejs历史版本下载地址 官网: https://nodejs.org/en/download/releases/ 阿里镜像: https://mirrors.aliyun.com/nodejs-release/ 阅读全文

Yarn 配置阿里源

2021-05-07 14:00 by Bughra, 389 阅读, 收藏, 编辑
摘要: Yarn 配置阿里源 1、查看一下当前源 yarn config get registry 2、切换为淘宝源 yarn config set registry https://registry.npm.taobao.orgyarn config set sass_binary_site "https 阅读全文
点击右上角即可分享
微信分享提示