Search code examples
node.jsubuntunpmghost-blog

Problems install Ghost 0.5.0 - npm WARN unmet dependency


I get the follow error when trying to install Ghost on ubuntu,

Node version

node -v
v0.10.22

NPM version

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!


Solution

  • I've just done a download of the latest official release from here: https://github.com/TryGhost/Ghost/releases

    Then I've run npm install --production and the only warning I get is this:
    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?

    Try to install ghost from that link in a clean directory, without sudo and see if it's still giving you warning.