Closed cloud602 closed 7 years ago
This occured because there was no main
field set in the package.json
. I fixed this and you can update your repo
git fetch
git reset origin/master --hard
will do this.
at first,thank you very much!but i have some other problems. my dev platform is win7 x64 and i am in china.so when i run cnpm install so i cancel it and run cnpm install again. update you source code ,run cnpm build & cnpm run run is ok now. but i run cnpm run start ,window is ok,but web app not work. at last,when i run cnpm run package:win,is slowly can you help me ?
So everything on your system is ok. The app is not intended to run in the web browser. It will only work in the electron window. This is a seed for an Angular 2 Electron App, not for an Angular 2 Web App. If you want to read more about the details of the configuration, you can read this article of mine.
Thanks for your reply! I have solved the problem, it's that the angular-cli hasn't installed correctly. Then I used VPN to install angular-cli. Thank you again for your article about electron's configuration.
I clone this seed and run {npm install,npm run build,npm run run} then Error