Closed mjbshaw closed 10 years ago
Whilst obviously something is up - my first thought is, why are you installing master from source on DO?! It's totally unstable :dancers:
Can you gist up the /root/Ghost/npm-debug.log?
I've just done a fresh install on my windows machine with no problems so I'm thinking this is definitely environmental, not something wrong with the dependencies.
Next up apt-get install nodejs
has always installed node 0.6 - we've had so many people do that and then wonder why Ghost doesn't work, but it seems you managed to get 0.10.15. So has the package been updated? I'm also not sure what apt-get install nodejs-legacy
does.. or why node and npm have to be installed separately. All of the install guides for linux suggest using Chris Lea's PPA which will give you the latest stable version of node - 0.10.15 is less out of date than 0.6 but still out of date.
The list has 0.4.0-rc3
(note the dash) while the package.json lists ~0.4.0rc3
. Can you check whether that would fix the issue?
Which package.json has this?
Ours has "grunt": "~0.4.1",
@ErisDS, oh - to be honest I didn't look at the package.json, I just took it from the error message. Ours should be fine indeed.
Seems to be grunt-update-submodules
: https://github.com/jaubourg/grunt-update-submodules/blob/master/package.json
That may be wrong - looks like the package isn't really maintained anymore though.
I hate to pull the IWFM card, but why is this only failing for @mjbshaw on such a specific env? I would say it's because node and npm are out of date, perhaps the version of npm in buggy?
Whilst obviously something is up - my first thought is, why are you installing master from source on DO?! It's totally unstable
What's life without a little Russian roulette? :grinning:
Can you gist up the /root/Ghost/npm-debug.log?
Yeah, the gist is here: npm-debug.log
I would say it's because node and npm are out of date, perhaps the version of npm in buggy?
I just built and installed node and npm from source, and it worked fine with no errors. So I would agree that node v0.10.15 + npm v1.2.18 is problematic, which is unfortunately the default of Ubuntu's repos.
If people don't want to build from source, Chris Lea maintains up-to-date node (and npm) packages here (with SO Q&A here).
Maybe the Ghost requirements should say npm 1.3.x? (I actually have no idea if 1.3.0 works; but 1.3.21 with node 0.10.24 is working).
See if we can get the grunt-update-submodule module updated, but I'm not even 100% it's actually working :/
Have pushed an update to the grunt-update-submodule package which should fix this.
@mjbshaw are you able to confirm?
Fix confirmed! Ghost installed perfectly on Ubuntu 13.10 x64 Server using Ubuntu's default repos and node and npm versions.
Closing as fixed by e53148e.
Excellent news - this means that anyone using Saucy or Trusy can install Ghost the sensible way using default packages, rather than having to use the PPA.
PPA is probably still preferable though, as it means you can always get the latest.
I've created a new droplet on Digital Ocean for testing, and I ran the following commands (starting from a fresh Ubuntu install):
npm install
fails with:Strangely I do not have these issues on OS X. It seems to be wanting
grunt@'~0.4.0rc3'
, but what my system has isgrunt@0.4.2
:I can provide more info, or even a fresh Digital Ocean droplet for testing (all I need is a public SSH key to give someone access). I'm not quite sure what's requiring
grunt@'~0.4.0rc3'
... I'm still looking.