Just pulled the latest version of the documentation into my local repo. Had to re-install grunt and grunt-cli before grunt build worked.
In the documentation directory I did
npm install grunt
npm install
npm install -g grunt-cli
grunt build
Currently I have
$ npm -v
6.9.0
$ grunt -version
grunt-cli v1.3.2
grunt v1.0.4
TL;DR
As a point of interest when I did my first grunt build
I got
$ grunt build
>> Local Npm module "grunt-download" not found. Is it installed?
>> Local Npm module "grunt-http-download" not found. Is it installed?
>> Local Npm module "grunt-http-download" not found. Is it installed?
Warning: Task "download:documentation" not found. Use --force to continue.
So I then did npm install
and got these messages
$ npm install
npm WARN deprecated @types/handlebars@4.1.0: This is a stub types definition. ha ndlebars provides its own type definitions, so you do not need this installed.
npm WARN rollback Rolling back node-pre-gyp@0.12.0 failed (this is probably harm less): EPERM: operation not permitted, lstat 'C:\Users\User\Documents\GitHub\Doc umentation\node_modules\fsevents\node_modules'
npm WARN grunt-contrib-clean@0.6.0 requires a peer of grunt@~0.4.0 but none is i nstalled. You must install peer dependencies yourself.
npm WARN grunt-contrib-watch@0.6.1 requires a peer of grunt@~0.4.0 but none is i nstalled. You must install peer dependencies yourself.
npm WARN grunt-execute@0.2.2 requires a peer of grunt@~0.4.1 but none is install ed. You must install peer dependencies yourself.
npm WARN grunt-express-server@0.4.19 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-http-download@0.1.0 requires a peer of grunt@~0.4.0 but none is i nstalled. You must install peer dependencies yourself.
npm WARN The package extend is included as both a dev and production dependency.
npm WARN The package lodash is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\fse vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"} )
added 4 packages from 2 contributors, removed 1 package, updated 12 packages and audited 3653 packages in 81.436s
found 60 vulnerabilities (16 low, 21 moderate, 22 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
So I then installed grunt followed by npm followed by npm install -g grunt-cli
with messages
$ npm install grunt
npm WARN rm not removing C:\Users\User\Documents\GitHub\Documentation\node_modules\.bin\grunt.cmd as it wasn't installed by C:\Users\User\Documents\GitHub\Documentation\node_modules\grunt
npm WARN rm not removing C:\Users\User\Documents\GitHub\Documentation\node_modules\.bin\grunt as it wasn't installed by C:\Users\User\Documents\GitHub\Documentation\node_modules\grunt
npm WARN grunt-contrib-clean@0.6.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-watch@0.6.1 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-execute@0.2.2 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-express-server@0.4.19 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-http-download@0.1.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package extend is included as both a dev and production dependency.
npm WARN The package lodash is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
+ grunt@1.0.4
removed 1 package, updated 3 packages and audited 3653 packages in 21.183s
found 58 vulnerabilities (16 low, 20 moderate, 21 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
$ npm install
npm WARN grunt-contrib-clean@0.6.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-contrib-watch@0.6.1 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-execute@0.2.2 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-express-server@0.4.19 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN grunt-http-download@0.1.0 requires a peer of grunt@~0.4.0 but none is installed. You must install peer dependencies yourself.
npm WARN The package extend is included as both a dev and production dependency.
npm WARN The package lodash is included as both a dev and production dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
audited 3653 packages in 38.062s
found 58 vulnerabilities (16 low, 20 moderate, 21 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
$ npm install -g grunt-cli
C:\Users\User\AppData\Roaming\npm\grunt -> C:\Users\User\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt
+ grunt-cli@1.3.2
updated 3 packages in 12.904s
At no point did I did
run `npm audit fix` to fix them, or `npm audit`
Then grunt build
worked