![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodeJs
文章平均质量分 71
rancho辉
It just works.
展开
-
node启动程序-清理由于崩溃导致的没有关掉的进程
const _execSync = require('child_process').execSync execSync (cmd, opt = {}) { return _execSync(cmd, Object.assign({ stdio: 'pipe', maxBuffer: maxBuffer }, opt)) } // 清理由于崩溃导致的没有关掉的进程 -------------------- var list = execSync('ps ax | grep node').原创 2020-11-30 16:43:54 · 351 阅读 · 0 评论 -
node更新版本
项目启动报错 更新框架之后,node版本由于比较低,导致了项目启动问题。 监测node版本 node -v 开始 清除缓存,这一步是为了避免node_module文件缓存导致报错 npm cache clean --force 安装n模块,专门用来管理node.js的版本 npm install -g n // 有报错加 –force npm install -g n ...原创 2019-06-21 15:02:02 · 731 阅读 · 1 评论