starkovsky / laravel-vue-cli

Laravel 7 + Vue CLI 4 SPA (Vuex, Router, Test) Admin + Public builds
167 stars 58 forks source link

npm run build:admin #168

Closed jayant-lumino closed 3 years ago

jayant-lumino commented 3 years ago

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`
starkovsky commented 3 years ago

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