# Installing Ghost LTS on Ubuntu 18.04

**URL:** <https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356>\
**Category:** Installation\
**Created:** [May 24, 2018, 5:57pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356 "2018-05-24T17:57:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hnarayanan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hnarayanan/32/19009_2.png) [@hnarayanan](https://forum.ghost.org/u/hnarayanan)\
**Post date:** [May 24, 2018, 5:57pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356/1 "2018-05-24T17:57:11Z")

</div>

In order to resurrect an old blog that I abandoned in 2015, I’m trying to install Ghost from the LTS branch of the GitHub repository. I used `nvm` to get what i believe to be supported values of `node` and `npm`. In particular:

```auto
$ node --version
v6.14.2

$npm --version
3.10.10

```

I then followed the installation instructions ` npm install --production` which seemingly concluded successfully. However, when I tried to start Ghost I ran into the following error.

```auto
$ npm start --production

[snip]

ERROR: Javascript files have not been built.

[snip]

```

I have uploaded the complete message as a gist on GitHub: [nom-debug.log · GitHub](https://gist.github.com/hnarayanan/82ed298ccb19273db3cfb942dbd38d16)

When I searched for this error, it seemed to be reported some times in 2015, but I did not get to a clear fix. Could someone please help me debug this?

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [May 24, 2018, 6:07pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356/2 "2018-05-24T18:07:13Z")

</div>

Not an expert, but from other discussions this might be a nvm issue:

```
If you installed node via nvm, we highly recommend that you uninstall nvm. There have been several people who have run into permission problems, because they've installed nvm in /root or /home, which is a local installation of node. Ghost requires a system wide installation.

It is not enough to symlink the local installation to /usr/bin/node.

Please uninstall nvm and any node versions installed with it:

rm -rf $NVM_DIR ~/.npm ~/.bower
unset NVM_DIR;
which node;
rm -rf {path_to_node_version}
Also look in your ~/.bash_profile or ~/.bashrc and remove any nvm lines.

```

From here: [https://docs.ghost.org/docs/install#section-install-ghost-cli](https://docs.ghost.org/docs/install#section-install-ghost-cli).

---

<div class="post-metadata">

**Author:** ![hnarayanan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hnarayanan/32/19009_2.png) [@hnarayanan](https://forum.ghost.org/u/hnarayanan)\
**Post date:** [May 24, 2018, 6:12pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356/3 "2018-05-24T18:12:37Z")

</div>

It might well be indeed, thank you. But I struggled with other `npm` and `node` installation methods, and I couldn’t get them to hit the exact version of `node` that this version of Ghost seems to want, `6.9 < supported npm version < 7`.

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [May 24, 2018, 6:27pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356/4 "2018-05-24T18:27:27Z")

</div>

It might also be the issue of Ubuntu 18.04 as the Ghost installation is officially supported (recommended) for Ubuntu 16.04.

You can also try to see if any of these tips help: [https://docs.ghost.org/docs/troubleshooting](https://docs.ghost.org/docs/troubleshooting).

---

<div class="post-metadata">

**Author:** ![hnarayanan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hnarayanan/32/19009_2.png) [@hnarayanan](https://forum.ghost.org/u/hnarayanan)\
**Post date:** [May 24, 2018, 6:38pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356/5 "2018-05-24T18:38:43Z")

</div>

Thank you.

I solved the problem by following notes on [an old issue](https://github.com/TryGhost/Ghost/issues/2367) on GitHub. The `npm install` was not triggering `grunt init` which happened to do a lot of the heavy lifting.

The final steps that worked include:

```auto
npm cache clean
npm install
grunt init
# something about installing npm-sqlite3 that I don't
# seem to see in my command history
npm start

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [June 7, 2018, 6:38pm UTC](https://forum.ghost.org/t/installing-ghost-lts-on-ubuntu-18-04/1356/6 "2018-06-07T18:38:48Z")

</div>

Closed on June 7, 2018, 6:38pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
