[英]Problems install Ghost 0.5.0 - npm WARN unmet dependency
I get the follow error when trying to install Ghost on ubuntu,尝试在 ubuntu 上安装 Ghost 时出现以下错误,
Node version节点版本
node -v
v0.10.22
NPM version NPM 版本
npm -v
1.4.21
Install output安装输出
sudo npm install --production
npm WARN package.json express@4.8.3 No README data
npm WARN package.json moment@2.4.0 No README data
npm WARN package.json mysql@2.1.1 No README data
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/bookshelf requires semver@'~2.3.0' but will load
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/semver,
npm WARN unmet dependency which is version 2.2.1
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/knex requires semver@'^2.3.0' but will load
npm WARN unmet dependency /usr/share/nginx/www/lm-ghost-0.5/node_modules/semver,
npm WARN unmet dependency which is version 2.2.1
Recommendations appreciated!建议赞赏!
I've just done a download of the latest official release from here: https://github.com/TryGhost/Ghost/releases我刚刚从这里下载了最新的官方版本: https : //github.com/TryGhost/Ghost/releases
Then I've run npm install --production
and the only warning I get is this:然后我运行了
npm install --production
,我得到的唯一警告是:
npm WARN engine html-to-text@0.1.0: wanted: {"node":"~0.8.0"} (current: {"node":"0.10.30","npm":"1.4.23"})
Are you sure you've downloaded the latest release version and not the github repository instead or another version?您确定您下载的是最新的发行版而不是 github 存储库或其他版本吗?
Try to install ghost from that link in a clean directory, without sudo
and see if it's still giving you warning.尝试在干净的目录中从该链接安装 ghost,没有
sudo
,看看它是否仍然给你警告。
sudo npm cache clean -f须藤 npm 缓存清洁 -f
sudo npm install -gn须藤 npm install -gn
sudo n stable须藤稳定
//This will install the latest stable version or you can go to https://nodejs.org for the latest 'recommended for most users' version and use: //这将安装最新的稳定版本,或者您可以访问https://nodejs.org获取最新的“推荐给大多数用户”版本并使用:
sudo n 4.6.0须藤 n 4.6.0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.