node
, npm
installed.yarn
installed is strongly recommended.yarn
or
npm install
npm uninstall -g angular-cli
npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
Check the version:
npm list @angular/cli version -g
The output should be 1.0.0-rc.0
ng serve
PWA Workshop
header. There will be some warnings about <template> element
in the console. Ignore them.ng build --prod
The dist
folder should be created. Start Web Server for Chrome
extension and point to this folder using "Choose folder" button. Open the link you see in "Web Server URL(s)" section (make sure the "Automatically show index.html" option is on). You should see the page with PWA Workshop
header.