安装 Ghost Blog 时出现问题 - 数字海洋

Problems installing Ghost Blog - digital ocean

安装和 运行 使用 ghost 的 npm 时不断出现多个错误。我以为它可能是 sqlite,但它似乎已经安装了。

npm ERR! ghost@0.6.4 start: `node index`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the ghost@0.6.4 start script.
npm ERR! This is most likely a problem with the ghost package,  
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index
npm ERR! You can get their info via:
npm ERR!     npm owner ls ghost
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.19.0-20-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"   
npm ERR! cwd /root/ghost 
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /root/ghost/npm-debug.log
npm ERR! not ok code 0

看来是你的ghost包有问题。所以要测试它,请从头开始用ghost:

cd ../
mkdir ghosttest
cd ghosttest
wget https://ghost.org/zip/ghost-0.6.4.zip
unzip ghost-0.6.4.zip
npm install --production
npm start

如果不起作用,请尝试将 node.js 和 npm 更新到最新的稳定版本。