DevWurm / angular-electron-seed

Seed project for an Angular - Electron Desktop app with the Angular-CLI
28 stars 21 forks source link

run error #2

Closed cloud602 closed 7 years ago

cloud602 commented 7 years ago

I clone this seed and run {npm install,npm run build,npm run run} then Error image

DevWurm commented 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.

cloud602 commented 7 years ago

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 image 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. image at last,when i run cnpm run package:win,is slowly image can you help me ?

DevWurm commented 7 years ago

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.

cloud602 commented 7 years ago

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.