שגיאה בעת התקנת electron.js
-
@magicode לא הולך.
עשיתי npm install electron
וזו התוצאה (לאחר התקנת תוכנת התעודה):
PS D:\code\electron\test1> npm install electronelectron@1.8.2 postinstall D:\code\electron\test1\node_modules\electron
node install.jsDownloading electron-v1.8.2-win32-x64.zip
Error: unable to verify the first certificate
D:\code\electron\test1\node_modules\electron\install.js:47
throw err
^Error: unable to verify the first certificate
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:584:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
npm WARN test1@1.0.0 No description
npm WARN test1@1.0.0 No repository field.npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.8.2 postinstall:node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@1.8.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:
-
@מנצפך אמר בשגיאה בעת התקנת electron.js:
v6.3.0
תעדכן לגירסת 6 האחרונה.
https://nodejs.org/download/release/latest-v6.x/ -
תודה @magicode זה כבר יותר טוב.
עבדתי לפי ההוראות הללו:
https://electronjs.org/docs/tutorial/quick-start
אני מקבל שגיאה:TypeError: Cannot read property 'on' of undefined
at Object.<anonymous> (D:\code\electron\test1\main.js:36:5)אשמח אם מישהו יריץ את הקוד שם ויראה אם עובד.
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות