
npm
文章平均质量分 80
三个木马人
这个作者很懒,什么都没留下…
展开
-
NPM 包发包流程
项目中经常回使用到第三方的插件,那么我们如何自己来发一个 npm 包供自己使用呢?下面就从入门开始梳理一下 npm 包发布的流程;文章目录1、必备环境2、npm 源管理3、注册账号4、创建 npm 包5、自己的项目6、发包7、几个报错处理8、其他问题1、必备环境要使用 npm 需要先安装 node.js ,npm 是随同 node 一起安装的包管理工具,node下载地址:https://nodejs.org/zh-cn/download/2、npm 源管理npm 发包必须使用 npm 的源镜像,如原创 2022-01-24 17:11:41 · 3415 阅读 · 0 评论 -
npm安装依赖报错: cb() never called!
用npm安装依赖报错:npm ERR! cb() never called!npm ERR! This is an error with npm itself. Please report this error at:npm ERR! <https://npm.community>npm ERR! A complete log of this run can be found in:npm ERR! C:\Users\Administrator\AppData\Roam原创 2020-12-16 16:14:55 · 45614 阅读 · 6 评论 -
Error: EBUSY: resource busy or locked 报错(vue)
Error: EBUSY: resource busy or locked用 npm i 安装依赖的时候报错 Error: EBUSY: resource busy or locked, lstat ‘C:\swapfile.sys’。下面是我总结的一些有效方法:方法一:删除 node_modules,然后再安装(npm i);方法二:删除 node_modules,运行 npm cache clean 或者 npm cache clean --force 命令, 然后安装;方法三:升级一下nod原创 2020-05-28 16:31:09 · 29443 阅读 · 1 评论