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:
parent
2a263c1024
commit
abf45dcd14
1 changed files with 7 additions and 0 deletions
7
.github/dev.js
vendored
7
.github/dev.js
vendored
|
@ -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')
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue