Before everything, I’m a web designer and not a programmer, so I’m not very handy with installing stuff like that on a server.
I currently have this web hosting solution that I use for hosting many websites.
My blog uses Grav but I’d like to switch to Ghost without having to pay for a VPS or something like that. My web hosting has Node.js installed, so I thought it might be possible to install Ghost on it but I’m stuck.
What I’ve done so far:
- Create a production Node.js app (version 8.14.1) on the cPanel
- SSH into my web hosting and running
source /home/<user>/nodevenv/test/8/bin/activateto enter the virtual environment
- Download Ghost (I’ve tried with the latest version and also version 0.11.12) and unzip it
app.jsand change this in
…and I don’t really know what else to do after that, because if I just run
npm install, I’m having lots of errors in the command line.
For example, with version 0.11.12 (with Node.js version 6.15.1), this is what I get when I try to run
npm WARN deprecated firstname.lastname@example.org: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/ npm WARN deprecated email@example.com: Package no longer supported. Contact firstname.lastname@example.org for more info. npm WARN deprecated email@example.com: This project is unmaintained npm WARN deprecated firstname.lastname@example.org: This project is unmaintained > email@example.com preinstall /home/iampoxco/nodevenv/test/6/lib > node core/server/utils/npm/preinstall.js module.js:478 throw err; ^ Error: Cannot find module '/home/iampoxco/nodevenv/test/6/lib/core/server/utils/npm/preinstall.js' at Function.Module._resolveFilename (module.js:476:15) at Function.Module._load (module.js:424:25) at Module.runMain (module.js:611:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:160:9) at bootstrap_node.js:507:3 npm ERR! Linux 3.10.0-962.3.2.lve126.96.36.199.el7.x86_64 npm ERR! argv "/opt/alt/alt-nodejs6/root/usr/bin/node" "/opt/alt/alt-nodejs6/root/usr/bin/npm" "install" "--prefix=/home/iampoxco/nodevenv/test/6/lib" npm ERR! node v6.15.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! firstname.lastname@example.org preinstall: `node core/server/utils/npm/preinstall.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the email@example.com preinstall script 'node core/server/utils/npm/preinstall.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the ghost package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node core/server/utils/npm/preinstall.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs ghost npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls ghost npm ERR! There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! Please include the following file with any support request: npm ERR! /home/iampoxco/test/npm-debug.log [test (6)] [iampoxco@world-319 test]$
- URL: https://iampox.com/test
- I’ve tried with Ghost version 2.11.1 (with Node.js version 8.14.1) and Ghost version 0.11.12 (with Node.js version 6.15.1)
I’ve contacted my web hosting provider support, but they don’t really know why it doesn’t work when I try to install it since Node.js is installed and I have SSH access.
If someone could help me, it’d be really great! I’ve already installed Ghost locally on my computer (macOS) to play with it and I really love it.
Thanks and have a good day!