Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run sw - missing script #77

Closed
guma44 opened this issue Aug 21, 2017 · 2 comments
Closed

npm run sw - missing script #77

guma44 opened this issue Aug 21, 2017 · 2 comments
Assignees
Labels
bug A bug in the current build.
Milestone

Comments

@guma44
Copy link

guma44 commented Aug 21, 2017

When I try to build the client image I get the error:

Step 11/13 : RUN npm run sw
 ---> Running in e2ea4451e26c
npm info it worked if it ends with ok
npm info using npm@5.3.0
npm info using node@v8.2.1
npm ERR! missing script: sw

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-08-21T20_47_44_765Z-debug.log

I am not sure what kind of script I should run :).

Thanks for help.

@nirgn975
Copy link
Owner

nirgn975 commented Aug 22, 2017

@guma44 Good catch, thanks!
In the latest update of Angular-CLI there is no sw npm script. They change it to "serviceWorker": true, in .angular-cli.json file (which is turn on in our case). So there is no need to do this manually any more. A fix is live! (:

@guma44
Copy link
Author

guma44 commented Aug 22, 2017

Thanks for explanation and fix!

@nirgn975 nirgn975 added this to the Version 1.1 milestone Aug 22, 2017
@nirgn975 nirgn975 added the bug A bug in the current build. label Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the current build.
Projects
None yet
Development

No branches or pull requests

2 participants