npm 警告:不能 运行 在 wd ghost@0.7.4 npm install semver

npm WARN: cannot run in wd ghost@0.7.4 npm install semver

我已经在 ubuntu 14.04 服务器中使用 npm v2.5.0 将节点更新到 v4.2.4。当我尝试 npm install to ghost blogging 时显示警告消息并停止安装。此错误发生在我的 Digital Ocean 服务器中。

警告信息是

npm WARN cannot run in wd ghost@0.7.4 npm install semver && node -e "require('./core/server/utils/startup-check.js').nodeVersion()" (wd=/var/www/html/ghost)

sqlite3@3.1.1 install /var/www/html/ghost/node_modules/sqlite3

node-pre-gyp install --fallback-to-build

我试过

GHOST_NODE_VERSION_CHECK=false && sudo npm install --production

根据 this,但没有用。

提前致谢。

我对 Digitalocean 的小型 intense 和交换 space 大型 npm 安装有疑问。您可能需要按照以下说明增加交换 space 以及使用频率。

https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04