linux中 nodejs 安装 sqlite3 出现的问题

错误代码类似:
Error: Cannot find module '/root/QuickNote/node_modules/sqlite3/lib/binding/node-v57-linux-x64/node_sqlite3.node'

npm install sqlite3 --build-from-source

使用上面的命令安装模块

如果出现

node-pre-gyp: Permission denied

错误

则需要安装 

node-pre-gyp
 
npm install -g node-pre-gyp

猜你喜欢

转载自www.cnblogs.com/xfbx/p/9344741.html