0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added note about requiring Node 18 to use yarn dev

refs https://ghost.slack.com/archives/CSF1ATVTJ/p1686134251084789

- whilst Ghost supports Node 16, only Node 18 and above comes with
  `--watch`, which we use in the `yarn dev` script
This commit is contained in:
Daniel Lockyer 2023-06-08 14:33:42 +02:00
parent 2a263c1024
commit abf45dcd14
No known key found for this signature in database

7
.github/dev.js vendored
View file

@ -4,6 +4,13 @@ const exec = util.promisify(require('child_process').exec);
const concurrently = require('concurrently');
// check we're running on Node 18 and above
const nodeVersion = parseInt(process.versions.node.split('.')[0]);
if (nodeVersion < 18) {
console.error('`yarn dev` requires Node v18 or above. Please upgrade your version of Node.');
process.exit(1);
}
const config = require('../ghost/core/core/shared/config/loader').loadNconf({
customConfigPath: path.join(__dirname, '../ghost/core')
});