290549 (4) [Avatar] Offline
#1
npm install -g sqlite3 on macos fails

critical error in log: node-pre-gyp WARN Hit error EACCES: permission denied, mkdir '/usr/local/lib/node_modules/sqlite3/lib/binding'

macos 10.13.6
node 8.11.3
npm 6.4.0

this finally worked for me: sudo npm install -g sqlite3 --unsafe-perm=true --allow-root