
npm
837927397@QQ.COM
这个作者很懒,什么都没留下…
展开
-
Node定时调用package.json中script命令
const child_process = require('child_process');//stdio子进程的标准输入输出配置,'inherit':通过相应的标准输入输出流传入/传出父进程const child = child_process.spawn('npm',['run','build'],{stdio:'inherit'})child.on('close',code => { //执行完成})...原创 2021-08-03 15:11:01 · 769 阅读 · 0 评论 -
npm重新安装node_modules方法
1. 安装rimraf : cnpm install rimraf -g2. 执行: rimraf node_modules 删除文件荚3. 清空缓存: npm cache clean --force4. 重新安装淘宝镜像: npm install -g cnpm --registry=https://registry.npm.taobao.org5. 再次执行:cnpm i...原创 2020-06-02 09:58:41 · 10110 阅读 · 0 评论