- Go to your node_modules folder for the checkout
- Select all the folders
- Deselect the *@types* folder (THIS IS IMPORTANT!)
- Shift-Delete to delete the files permanently (except that one
folder)
- Wait for the delete to finish
- Open an Command Prompt with Admin Rights (not a power shell window
or git bash window and it must have Admin)
- Copy the path to the UI project folder from your Windows Explorer
window (not the node_modules you were just in, but one up from
that)
- Type cd and a space then right-click in the window (it will paste
the path from the clipboard) and press Enter
- Put the following command in and run it by pressing enter.
- npm i -g npm && npm i -g --production windows-build-tools && npm i
-g gulp && npm install
- The first time you do this, it's going to take a little while
because it has to build those windows tools. Subsequent runs in
other folders won't take nearly as long.
- A buildStore should take about 40 seconds on DevForceOne after this,
instead of up to 8 minutes.