1 year ago

#197427

test-img

Eduardojls

Unexpected token when running grunt build

I'm trying to execute the following command grunt build but when trying it the below error message appear

PS C:\Users\EDMA\Documents\Tutenlabs\Bitbucket\tuten-macarena-backoffice-web> grunt build
C:\Users\EDMA\AppData\Roaming\nvm\v6.16.0\node_modules\grunt-cli\node_modules\micromatch\index.js:44
    let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
                                                   ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\EDMA\AppData\Roaming\nvm\v6.16.0\node_modules\grunt-cli\node_modules\findup-sync\index.js:12:10)

I navigate to C:\Users\EDMA\AppData\Roaming\nvm\v6.16.0\node_modules\grunt-cli\node_modules\micromatch\index.js:44 path and looked for index.js file to check whether there's an error or not, but the strange thing is there isn't. Any idea what's going on here?

Aditionally, this is AngularJS.

javascript

angularjs

npm

gruntjs

0 Answers

Your Answer

Accepted video resources