"npm start" 在 ghost 中给出错误 (node.js)

"npm start" gives error in ghost (node.js)

我在安装 node.js 后尝试设置 ghost,但是当我 运行 将 ghost 安装为

npm install --productions

它给我以下错误

> ghost@0.5.10 start /home/kedarkhetia/Downloads/ghost-0.5.10
> node index


module.js:340
    throw err;
    ^
Error: Cannot find module 'streamsearch'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/kedarkhetia/Downloads/ghost-0.5.10/node_modules/busboy/node_modules/dicer/lib/Dicer.js:5:20)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
npm ERR! weird error 8
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! not ok code 0

感谢任何帮助。

尝试运行

npm install streamsearch

这个有用吗?

这可能是相关的:

Cannot install packages using node package manager in Ubuntu

确保您已经安装了流搜索。

npm install streamsearch

如果仍然无法正常工作,请检查您是否已克隆 stable 用于生产。如果这样做,请重新克隆它并再次执行安装步骤。将 sudo 用于 npm/grunt 命令(如果您使用 OSX 或 Linux)用于 npm ERR!.

我刚刚查看了 Ghost 文档,它说要安装用于生产的依赖项,您必须 运行 npm install --production 而不是 npm install --productions。安装 streamsearch 后,它会一直报错,直到您用 npm install --production.

安装了所有独立的依赖项

希望对您有所帮助!