我正在尝试安装pouchdb-server,如下所示:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs build-essential
sudo npm install -g pouchdb-server
安装卡在sqlite3
的无限循环中。重复出现以下消息。
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/pouchdb-server/node_modules/sqlite3/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/lib/node_modules/pouchdb-server/node_modules/sqlite3/.node-gyp/8.11.1"
如何成功安装这些消息?
答案 0 :(得分:1)
以下排除了上述错误。
sudo npm install -g pouchdb-server --ignore-scripts