寻找node安装路径:
which node
杀掉所有的node:
killall node
刷新require的缓存
Object.keys(require.cache).forEach(function(key) { delete require.cache[key]; });
const xxx = require('xxx');
npm adduser
寻找node安装路径:
which node
杀掉所有的node:
killall node
刷新require的缓存
Object.keys(require.cache).forEach(function(key) { delete require.cache[key]; });
const xxx = require('xxx');
npm adduser