使用国内源
查询当前使用的镜像源
npm get registry
设置为淘宝镜像源
npm config set registry https://registry.npmmirror.com/
还原为官方镜像源
npm config set registry https://registry.npmjs.org/
sql.js
npm install sql.js
npm get registry
npm config set registry https://registry.npmmirror.com/
npm config set registry https://registry.npmjs.org/
npm install sql.js