Topic: Error after running
Ardhi Woko Syahbiddin free asked 6 years ago
hello i run "npm run pwa" and i got an error like as below
"> mdb-pwa@0.0.0 pwa E:\Demo\mdb-pwa
> rm -rf dist && ng build --prod && cd dist && http-server -p 8080 && cd ..
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mdb-pwa@0.0.0 pwa: `rm -rf dist && ng build --prod && cd dist &&
http-server -p 8080 && cd ..`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mdb-pwa@0.0.0
pwa 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\TEDY PRATAMA PUTRA\AppData\Roaming\npm-cache\_logs\2018-10-02T06_40_44_292Z-debug.log"
Can you help me with this error thanks.
Add comment
Damian Gemza staff answered 6 years ago
Dear Ardhi,
Please, open the package.json file, and remove rm -rf dist from "pwa" script, and then try one more time.
The rm -rf command doesn't exist on Windows.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.1.1
- Device: -
- Browser: Google Chrome
- OS: Win 10
- Provided sample code: No
- Provided link: No