starkovsky/laravel-vue-cli

npm run build:admin

jayant-lumino opened this issue · 1 comments

Getting the following error when I run the above command

`

> laravel@0.2.0 build:admin C:\wamp64\www\laravel-vue\vueblog
> cd resources/frontend/admin && npm run build


> admin@0.1.0 build C:\wamp64\www\laravel-vue\vueblog\resources\frontend\admin
> del -r ../../../public/assets/admin/{js,css,img} && vue-cli-service build --no-clean

Invalid switch - "..".
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! admin@0.1.0 build: `del -r ../../../public/assets/admin/{js,css,img} && vue-cli-service build --no-clean`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the admin@0.1.0 build 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\jinya\AppData\Roaming\npm-cache\_logs\2020-12-18T09_03_03_880Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! laravel@0.2.0 build:admin: `cd resources/frontend/admin && npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the laravel@0.2.0 build:admin script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jinya\AppData\Roaming\npm-cache\_logs\2020-12-18T09_03_03_943Z-debug.log`

npm install in resources/frontend/admin and resources/frontend/app