
nodejs
天占
这个作者很懒,什么都没留下…
展开
-
npm install: Error: EACCES: permission denied, mkdir
npm install 后面加个--unsafe-perm原创 2021-04-30 15:02:21 · 262 阅读 · 1 评论 -
brew 更新了 node 到14之后, npm 不管用。解决方案
brew uninstall --ignore-dependencies node如果发现还有 node 存在,可以再继续调用brew uninstall --ignore-dependencies node或者验证一下 npm 是不是恢复正常了。我干脆不用 brew 安装 node 了,去官网下一个稳定版本 (此时是 12.x )https://nodejs.org/en/然后直接执行 下载过来的 pkg 文件即可。...原创 2020-07-28 22:31:30 · 1006 阅读 · 0 评论 -
npm install 出现 code ERR_TLS_CERT_ALTNAME_INVALID 的错误
解决方式npm config set strict-ssl false原创 2020-07-28 19:18:41 · 2334 阅读 · 0 评论 -
godaddy域名 自动签发 letsencrypt 证书并设置到 nginx
免费的https证书生成很消耗时间,godaddy 又很慢。所以做一个自动化脚本,就省力啦。// 创建 https 证书class makeHttpsConfig { //阻塞延时 static sleep(ms) { return new Promise((resolve, reject) => { setTimeo...原创 2020-03-22 21:36:33 · 1077 阅读 · 0 评论 -
切换npm 国内镜像与国外镜像[转]
1, 修改 下载仓库为淘宝镜像npm config set registry https://registry.npm.taobao.org --globalnpm config set disturl https://npm.taobao.org/dist --global2, 如果要发布自己的镜像需要修改回来 npm config set registry https://r...转载 2018-10-11 11:42:22 · 2220 阅读 · 0 评论 -
package.json 的详细原版说明之 本地路径库引用
https://docs.npmjs.com/files/package.json里面有介绍到 dep 的 file 字段。文档里面找到更详细的介绍如下:https://docs.npmjs.com/files/package.json#local-pathsLocal Pathss of version 2.0.0 you can provide a path to a lo...原创 2018-10-19 17:27:53 · 11396 阅读 · 0 评论 -
express下使用ES6
https://www.cnblogs.com/dtdxrk/p/6023910.html 1 2 3 4 5 6 7 8 9 //环境切换配置 package.json scripts:{ "service": "NODE_ENV=production PORT=3000 npm...转载 2019-01-06 23:21:03 · 1899 阅读 · 0 评论