angular-6-web-components icon indicating copy to clipboard operation
angular-6-web-components copied to clipboard

Unable to view demo locally

Open lucasklaassen opened this issue 6 years ago • 4 comments

Hey @sulco I have pulled down the repo and tried to run the commands you've listed in the README.md but I'm unable to find the command npm run package-elements is this something you have locally but have not pushed up?

lucasklaassen avatar May 14 '18 18:05 lucasklaassen

only npm run package Demo is working only in Chrome

hotovec avatar May 16 '18 13:05 hotovec

Hi Sulco, I have started programming with version 6 of Angular two months ago. I have a problem when executing the command: npm run package I get the following errors: "cat" is not recognized as an internal or external command, events.js: 183        throw er; // Unhandled 'error' event

Error: ENOENT: no such file or directory, open ... gzip: no one pattern is not specified. Operation is skipped.

I do not recognize the cat and gzip commands

Exactly what is the reason why you do not recognize the commands?

Best regards

joexjs avatar Oct 30 '18 16:10 joexjs

@joexjs I think you should probably raise that as another issue as it is unrelated to this issue. You are likely on windows and need something like cygwin to execute the unix commands cat and gzip

mwtidd avatar Nov 01 '18 19:11 mwtidd

Just leave it here

"package": "bash -c 'cat dist/angular6-elements/{runtime,polyfills,scripts,main}.js' | gzip > elements.js.gz"

psixdev avatar Feb 22 '19 08:02 psixdev