note.wcoder.com
wcoder GitHub

Table of Contents

nodejs

规范

package.json规范

命令

寻找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子进程spawn,exec踩过的坑

数据库相关

Sequelize 中文API文档 CN

graphql入门 CN

← Previous Next →
Less
More