简体   繁体   English

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

[英]“npm start” gives error in ghost (node.js)

I tried to setup ghost after installing node.js but as I run the install for ghost as 我尝试在安装node.js之后设置幽灵,但是当我运行幽灵的安装时

npm install --productions

It gives me the following error 它给我以下错误

> 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

any help is appreciated. 任何帮助表示赞赏。

Try running 尝试跑步

npm install streamsearch

Does this work? 这样行吗?

This may be related: 这可能与以下内容有关:

Cannot install packages using node package manager in Ubuntu 无法在Ubuntu中使用节点软件包管理器安装软件包

Make sure you have installed streamsearch. 确保已安装streamsearch。

npm install streamsearch

If it is still not working, check that you have cloned stable for production or not. 如果仍然无法正常运行,请检查是否已克隆稳定的生产环境。 If you did, re-clone it and do installation steps again. 如果这样做,请重新克隆它并再次执行安装步骤。 Use sudo for npm/grunt commands (if you are on OSX or Linux) for npm ERR! sudo用于npm / grunt命令(如果您在OSX或Linux上)用于npm ERR! .

I just looked at the Ghost Docs, and it says to install the dependencies for production you must run npm install --production and not npm install --productions . 我只是看了看Ghost Docs,它说要安装生产的依赖项,必须运行npm install --production而不是npm install --productions Once you install streamsearch , it will keep complaining until you have installed all the individual dependencies with npm install --production . 安装streamsearch ,它将一直抱怨直到您使用npm install --production安装了所有单独的依赖项。

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM