Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 767 Bytes

troubleshooting.md

File metadata and controls

17 lines (10 loc) · 767 Bytes

Troubleshooting

npm and Node.js

The Transport for West Midlands Styleguide uses npm to manage dependencies. Please install Node.js, and try running npm install again.

If Node.js is already installed, make sure you’re running v8 or up.

JavaScript and compilation issues

JavaScript dependencies sometimes get out of sync and inexplicable bugs start to happen. Follow these steps to give a fresh start to your development environment:

  1. The installed npm version must be at least v3.10. You can update your npm with: npm install npm -g (sudo may be required).
  2. Re-install dependencies: rm -Rf node_modules && npm install
  3. npm start

If this did not work, try running npm cache clean and repeat the above steps.