When running npm run dev after installing an error gets triggered.

alexgil1994
25
alexgil1994
commented a year ago

I tried it with the starter-template as well as with the create-nuxt-app template.
When i run npm run dev command this error appears :

C:\Users\Alexandros\Desktop\Projects\gsl_logistics>npm run dev

gsl[email protected] dev C:\Users\Alexandros\Desktop\Projects\gsllogistics
nuxt

C:\Users\Alexandros\Desktop\Projects\gsllogistics\nodemodules\nuxt\lib\core\middleware\nuxt.js:72
const policies = this.options.render.csp.policies ? {…this.options.render.csp.policies} : null
^^^

SyntaxError: Unexpected token …
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module.compile (module.js:533:28) at Object.Module.extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module.load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\Alexandros\Desktop\Projects\gsllogistics\nodemodules\nuxt\lib\core\renderer.js:19:24) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gsl[email protected] dev: nuxt
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Alexandros\AppData\Roaming\npm-cache_logs\2018-05-20T154450_007Z-debug.log

I have also tried it through the vuetify nuxt template but had the same error.
Node version is v8.1.3
Npm version is v5.0.3

What could be the problem?

Thank you for your time

0
alexgil1994
25
alexgil1994
commented a year ago

Solved it, i had to update the node version which also had a problem of rolling back when installing, the cause of that one was avast.

1
Informations
QuestionResolved
#c49 - Created a year ago