diff --git a/CHANGELOG.md b/CHANGELOG.md index 39ce9a0..94f5b7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# Unreleased + +Bug fixes: + +- [#23 Fix npm install warnings](https://github.com/alphagov/govuk-prototype-kit-private-beta/pull/23) + # 7.0.0-beta.2 - [#21 Update links to the design system](https://github.com/alphagov/govuk-prototype-kit-private-beta/pull/21) diff --git a/start.js b/start.js index c8cc415..94dd0fa 100644 --- a/start.js +++ b/start.js @@ -3,7 +3,8 @@ const path = require('path') const fs = require('fs') // Warn if node_modules folder doesn't exist -const nodeModulesExists = fs.existsSync(path.join(__dirname, '/node_modules')) +// HACK: Check /express since we are committing in node_modules in this prototype version of the kit +const nodeModulesExists = fs.existsSync(path.join(__dirname, '/node_modules', '/express')) if (!nodeModulesExists) { console.error('ERROR: Node module folder missing. Try running `npm install`') process.exit(0)