Electron: خطأ: فشل تثبيت Electron بشكل صحيح ، يرجى حذف node_modules / electron ومحاولة التثبيت مرة أخرى

تم إنشاؤها على ٢١ يناير ٢٠١٧  ·  54تعليقات  ·  مصدر: electron/electron

  • الإصدار الإلكتروني: الأحدث (التي تحاول)
  • نظام التشغيل: Microsoft Windows [الإصدار 10.0.10586]

سلوك متوقع

التثبيت من "npm" على Windows

السلوك الفعلي

لا يمكنني استخدام Electron لأنه لم يتم تثبيته بشكل صحيح ، على الرغم من استخدام shell في وضع المسؤول. لاحظ أنه عند تثبيت التبعيات ، فإنه لا ينتهي من عرض شجرة التبعية التي تعرض عادةً "npm".

كيف تتكاثر

git clone https://github.com/electron/electron-quick-start
cd electron-quick-start
npm install
npm start

> [email protected] start PATH\electron-quick-start
> electron .

PATH\electron-quick-start\node_modules\electron\index.js:9
throw new Error('Electron failed to install correctly, please delete node_modules/' + path.basename(__dirname) + ' and try installing again')
^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at Object.<anonymous> (PATH\electron-quick-start\node_modules\electron\index.js:9:9)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (PATH\electron-quick-start\node_modules\electron\cli.js:3:16)
at Module._compile (module.js:570:32)

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\nodejs\\node.exe" "C:\\Users\\{user_name}\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.9.4
npm ERR! npm v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: electron .
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'electron .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the electron-quick-start package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! electron .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-quick-start
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls electron-quick-start
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! PATH\electron-quick-start\npm-debug.log

npm- debug.txt

شكرا!

blockeneed-info ❌

التعليق الأكثر فائدة

يحاول

npm install electron --verbose

يجب أن يخرج شريط تقدم للتنزيل 👍

ال 54 كومينتر

على الرغم من استخدام shell في وضع المسؤول

هذه بشكل عام فكرة سيئة حقًا. هل تعمل بيئة NPM / Node الخاصة بك بدون وضع المسؤول؟

أعني ، هل حاولت فعل ما يوحي به الخطأ وحذف "node_modules / electron" والمحاولة مرة أخرى؟

MarshallOfSound هذا صحيح ، لقد فعلت ذلك عدة مرات.

يبدو غريباً بالنسبة لي شيئًا واحدًا ، أثناء تثبيت الوحدات ، على ما يبدو لا ينتهي بشكل صحيح ، لأنه يبقى كما يلي:

$ npm install

> [email protected] postinstall C:\Users\Lizandro Zerpa\Desktop\SisTelSim\SisTelSim_Dev\electron-quick-start\node_modules\electron
> node install.js
(تظل معلقة)

enlight لقد قمت بتثبيت مثيلات عامة متعددة ، وهي تعمل بشكل صحيح. نادرًا ما أضطر إلى تثبيتها مع المسؤول.

LizanLycan يبقى على node install.js أثناء تنزيله Electron. من فضلك اتركها تنتهي ولا تلغيها في منتصف الطريق.

MarshallOfSound حسنًا ، هذا ما كنت أفعله. كنت أبحث عن حجم العبوة لإعطائي فكرة عن المدة التي قد تستغرقها ، لكنني لم أحصل عليها. تركته لأكثر من ساعة. مازلت انتظر شكرا على التعليق

يحاول

npm install electron --verbose

يجب أن يخرج شريط تقدم للتنزيل 👍

تضمين التغريدة أستطيع الآن رؤية تقدم التنزيل. سأنتظر حتى أنتهي وأعلق. 👍

تضمين التغريدة
على ما يبدو القليل من الفرح الصعب.

[email protected] postinstall C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ electron
العقدة install.js

تحميل electron-v1.4.15-win32-x64.zip
خطأ: اقرأ ECONNRESET
C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ electron \ install.js: 46
رمي يخطئ
^

خطأ: اقرأ ECONNRESET
في export._errnoException (util.js: 1022: 11)
على TLSWrap.onread (net.js: 569: 26)
npm دورة حياة الفعل [email protected] ~ postinstall: unsafe-perm في دورة الحياة true
الآلية الوقائية الوطنية الفعل دورة حياة [email protected] ~ postinstall: PATH: C: \ المستخدمين \ Lizandro زيربا \ APPDATA \ Roamingnpm \ node_modulesnpm \ بن \ عقدة احتيال بن؛ C: \ المستخدمين \ Lizandro زيربا \ APPDATA \ Roamingnpm \ node_modules \ الإلكترون \ node_modules.bin؛ C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules.bin؛ C: \ Program Files (x86) NVIDIA Corporation \ PhysX \ Common؛ C: \ Program Files (x86) \ Intel \ iCLS Client \ ؛ C: \ Program Files \ Intel \ iCLS Client \؛ C: \ WINDOWSsystem32؛ C: \ WINDOWS؛ C: \ WINDOWS \ System32 \ Wbem؛ C: \ WINDOWS \ System32 \ WindowsPowerShell \ v1.0 \؛ C: \ Program Files \ Intel \ Intel (R) Management Engine Components \ DAL؛ C: \ Program Files \ Intel \ Intel (R) Management Engine Components \ IPT؛ C: \ Program Files (x86) \ Intel \ Intel (R) Management Engine Components \ DAL؛ C: \ Program Files (x86) \ Intel \ Intel (R) Management Engine Components \ IPT؛ C: \ Program Files \ Intel \ WiFi \ bin \؛ C: \ Program Files \ Common Files \ Intel \ WirelessCommon \ ؛ C: \ Program Files (x86) \ Skype \ Phone \؛ C: \ nodejs \؛ C: \ Program Files \ Git \ cmd؛ C: \ Program Files (x86) \ Windows Kits \ 8.1 \ Windows Performance Toolkit \؛ C: \ Users \ Lizandro Zerpa.dnx \ bin؛ C: \ Program Files \ Microsoft DNX \ Dnvm \؛ C: \ Program Files \ Microsoft SQL Server \ 130 \ Tools \ Binn \؛ C: \ Ruby22-x64 \ bin ؛ C: \ MinGW \ bin ؛ C: \ MinGW \ msys \ bin \ 1.0 ؛ C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm
دورة حياة الفعل npm [email protected] ~ postinstall: CWD: C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ electron
دورة حياة معلومات npm [email protected] ~ postinstall: فشل تنفيذ البرنامج النصي بعد التثبيت
تم إلغاء قفل الفعل npm باستخدام C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm-cache_locksstaging-d38db31138d15c28.lock لـ C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules.staging
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
npm الفعل بلطف Rm لا يهتم بالمحتويات ؛ nuking C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modules \ إلكترون
خطأ في مكدس الفعل npm: [email protected] postinstall: node install.js
npm verb stack حالة الخروج 1
مكدس الفعل npm في EventEmitter.(C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modulesnpm \ lib \ utils \ lifecycle.js: 279: 16)
npm verb stack at emitTwo (events.js: 106: 13)
مكدس الفعل npm في EventEmitter.emit (events.js: 191: 7)
مكدس الفعل npm في ChildProcess.(C: \ Users \ Lizandro Zerpa \ AppData \ Roamingnpm \ node_modulesnpm \ lib \ utilsspawn.js: 40:14)
npm verb stack at emitTwo (events.js: 106: 13)
مكدس الفعل npm في ChildProcess.emit (events.js: 191: 7)
مكدس الفعل npm في ربما إغلاق (internal / child_process.js: 877: 16)
مكدس الفعل npm في Process.ChildProcess._handle.onexit (داخلي / child_process.js: 226: 5)
npm الفعل pkgid [email protected]
npm الفعل cwd C: \ Users \ Lizandro Zerpa \ Desktop \ SisTelSim \ SisTelSim_Dev \ electron-quick-start
npm خطأ! نظام التشغيل Windows_NT 10.0.10586
npm خطأ! argv "C: \ nodejs \ node.exe" "C: \ Users \ Lizandro Zerpa \ AppData \ Roaming \ npm \ node_modules \ npm \ bin \ npm-cli.js" "تثبيت" إلكترون "" -g "" - -إفراط "
npm خطأ! عقدة v6.9.4
npm خطأ! npm v4.1.1
npm خطأ! كود ELIFECYCLE

npm خطأ! [email protected] postinstall: node install.js
npm خطأ! حالة الخروج 1
npm خطأ!
npm خطأ! فشل في البرنامج النصي لما بعد التثبيت [email protected] "العقدة install.js".
npm خطأ! تأكد من تثبيت أحدث إصدار من node.js و npm.
npm خطأ! إذا قمت بذلك ، فمن المحتمل أن تكون هذه مشكلة في حزمة الإلكترون ،
npm خطأ! ليس مع npm نفسها.
npm خطأ! أخبر المؤلف أن هذا فشل على نظامك:
npm خطأ! العقدة install.js
npm خطأ! يمكنك الحصول على معلومات حول كيفية فتح مشكلة لهذا المشروع باستخدام:
npm خطأ! npm البق الكترون
npm خطأ! أو إذا لم يكن ذلك متاحًا ، يمكنك الحصول على معلوماتهم عبر:
npm خطأ! مالك npm ls electron
npm خطأ! من المحتمل أن يكون هناك مخرجات تسجيل إضافية أعلاه.
npm verb exit [1، true]

npm خطأ! الرجاء تضمين الملف التالي مع أي طلب دعم:
npm خطأ! C: \ Users \ Lizandro Zerpa \ Desktop \ SisTelSim \ SisTelSim_Dev \ electron-quick-startnpm-debug.log

يبدو أنك تواجه بعض مشكلات الشبكة (الخارجة عن سيطرتنا 😢)

يمكنك تنزيل ملف ZIP يدويًا في متصفحك من هنا ووضعه في مجلد C:\Users\<username>\.electron . ثم لن يحتاج إلى تنزيل نفسه 👍

لا يمكن إيجاد حل لهذا -
م يحذرون دورة حياة [email protected] ~ postinstall: لا يمكن تشغيلها في أيام عمل٪ ق٪ ق (WD =٪ ق) [email protected] عقدة install.js / الوطن / نيخيل / مساحة العمل / electron_demo / الإلكترون البداية السريعة / node_modules / إلكترون
[email protected] / home / nikhil / workspace / electron_demo / electron-quick-start
-- [email protected] +-- [email protected] | +-- [email protected] | | - [email protected]
| + - [email protected]
| | + - [email protected]
| | + - [email protected]
| | + - [email protected]
| | + - [email protected]
| | -- [email protected] | | - [email protected]
| | + - خ. [email protected]
| | + - [email protected]
| | | -- [email protected] | | +-- [email protected] | | | - [email protected]
| | | + - مباراة متوازنة@0.4.2
| | | -- [email protected] | | - [email protected]
| + - [email protected]
| + - [email protected]
| + - [email protected]
| | + - جميلة -
| | | + - [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | + - رفض بصوت عال @ 1.6.0
| | | | + - حاليًا[email protected]
| | | | | -- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | + - تطبيع[email protected]
| | | | + - استضافة[email protected]
| | | | + - [email protected]
| | | | | -- [email protected] | | | | - التحقق من صحة الحزمة- [email protected]
| | | | + - [email protected]
| | | | | -- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | + - [email protected]
| | | | + - [email protected]
| | | | -- [email protected] | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | | - [email protected]
| | | | | | -- [email protected] | | | | | +-- [email protected] | | | | | - [email protected]
| | | | | -- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | | + - مسافة بادئة- [email protected]
| | | | | -- [email protected] | | | | | - غير محدود @ 1.0.2
| | | | -- [email protected] | | | - [email protected]
| | + - [email protected]
| | | + - عداد السرعة@0.1.4
| | | -- [email protected] | | | +-- [email protected] | | | | - [email protected]
| | | -- [email protected] | | | - [email protected]
| | + - [email protected]
| | | + - [email protected]
| | | + - [email protected]
| | | + - [email protected]
| | | + - [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | | + - [email protected]
| | | | | + - [email protected]
| | | | | + - [email protected]
| | | | | + - [email protected]
| | | | | -- [email protected] | | | | +-- [email protected] | | | | | - [email protected]
| | | | -- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | | - هو[email protected]
| | | | + - [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | | + - [email protected]
| | | | + - [email protected]
| | | | | + - [email protected]
| | | | | + - [email protected]
| | | | | -- [email protected] | | | | - [email protected]
| | | | + - [email protected]
| | | | + - [email protected]
| | | | + - [email protected]
| | | | + - [email protected]
| | | | | -- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | | - [email protected]
| | | | + - [email protected]
| | | | + - [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | - [email protected]
| | | + - [email protected]
| | | + - [email protected]
| | | + - [email protected]
| | | + - صعبة- ملف تعريف الارتباط@2.3.2
| | | | -- [email protected] | | | +-- [email protected] | | | - [email protected]
| | + - سطر واحد[email protected]
| | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | - [email protected]
| | | -- [email protected] | | | - [email protected]
| | -- [email protected] | +-- [email protected] | | - [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | - [email protected]
| + - [email protected]
| -- [email protected] | - [email protected]
-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | - [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] | - [email protected]
-- [email protected] - [email protected]
"- [email protected]

[email protected] start / home / nikhil / workspace / electron_demo / electron-quick-start
إلكترون.

/home/nikhil/workspace/electron_demo/electron-quick-start/node_modules/electron/index.js:9
طرح خطأ جديد ('فشل تثبيت الإلكترون بشكل صحيح ، يرجى حذف node_modules /' + path.basename (__ dirname) + 'وحاول التثبيت مرة أخرى')
^

خطأ: فشل تثبيت Electron بشكل صحيح ، يرجى حذف node_modules / electron ومحاولة التثبيت مرة أخرى
في الكائن.(/home/nikhil/workspace/electron_demo/electron-quick-start/node_modules/electron/index.js:9:9)
في Module._compile (module.js: 410: 26)
في Object.Module._extensions..js (module.js: 417: 10)
في Module.load (module.js: 344: 32)
في Function.Module._load (module.js: 301: 12)
في Module.require (module.js: 354: 17)
عند الطلب (داخلي / module.js: 12: 17)
في الكائن.(/home/nikhil/workspace/electron_demo/electron-quick-start/node_modules/electron/cli.js:3:16)
في Module._compile (module.js: 410: 26)
في Object.Module._extensions..js (module.js: 417: 10)

npm خطأ! Linux 4.4.0-59-عام
npm خطأ! argv "/ usr / bin / nodejs" "/ usr / bin / npm" "بدء"
npm خطأ! عقدة v4.2.6
npm خطأ! npm v3.5.2
npm خطأ! كود ELIFECYCLE
npm خطأ! البدء [email protected] : electron .
npm خطأ! حالة الخروج 1
npm خطأ!
npm خطأ! فشل في [email protected] النصي بداية "الإلكترون '.
npm خطأ! تأكد من تثبيت أحدث إصدار من node.js و npm.
npm خطأ! إذا قمت بذلك ، فمن المحتمل أن تكون هذه مشكلة في حزمة البدء السريع للإلكترون ،
npm خطأ! ليس مع npm نفسها.
npm خطأ! أخبر المؤلف أن هذا فشل على نظامك:
npm خطأ! إلكترون.
npm خطأ! يمكنك الحصول على معلومات حول كيفية فتح مشكلة لهذا المشروع باستخدام:
npm خطأ! npm البق الإلكتروني السريع البدء
npm خطأ! أو إذا لم يكن ذلك متاحًا ، يمكنك الحصول على معلوماتهم عبر:
npm خطأ! مالك npm ls إلكترون البدء السريع
npm خطأ! من المحتمل أن يكون هناك مخرجات تسجيل إضافية أعلاه.

npm خطأ! الرجاء تضمين الملف التالي مع أي طلب دعم:
npm خطأ! /home/nikhil/workspace/electron_demo/electron-quick-start/npm-debug.log

ساعدنيMarshallOfSound في تصحيح هذا من خلال مراقبة عملية التنزيل والتثبيت باستخدام:

npm install electron -g --verbose

باستخدام هذا الأمر ، ستقوم بتثبيت Global Electron. لا يمكنك الإلغاء حتى تكتمل عملية التنزيل. احذف المجلد node_modules وأعد التثبيت.

تضمين التغريدة
هل كان الحل الخاص بك لتثبيت الإلكترون على الصعيدين العالمي والمحلي؟ او واحد او الاخر؟

الرجاء المساعدة ... لقد جربت كل شيء ...

تشمل الوحدات النمطية dir install.js وتشغيلها وتثبيتها ، ويتم كتابة path.txt. إنها تعمل

لقد اكتشفت مشكلتي. لدي أخطاء JavaScript في مكونات Angular 2 الخاصة بي. لسبب ما إذا كان لديك أخطاء في JavaScript ، فسوف يمنحك هذا الإلكترون خطأ مثبتًا بشكل غير صحيح.

كان لي نفس المشكلة. لقد أصلحته عن طريق إزالة جميع المجلدات التي تبدأ بالاسم electorn (كان هناك حوالي 5 مجلدات) وقمت بتشغيل تثبيت npm بعلم مطول. npm i --verbose . ثم أظهر شريط التقدم لتنزيل وتنزيل ثنائيات الإلكترون بشكل جيد. يرجع ذلك في الغالب إلى الاتصال السيئ بالإنترنت. نعم ، كنت على اتصال بسرعة 150 كيلوبت في الثانية.

LizanLycan + manojvignesh - اقتراح رائع!
مع --verbose يجعل الأمر أكثر وضوحًا إذا كنت تقاطع بطريقة ما تنزيل وحدة الإلكترون أثناء تثبيت node_modules

خطأ: فشل تثبيت Electron بشكل صحيح ، يرجى حذف node_modules / electron ومحاولة التثبيت مرة أخرى

خطأ: فشل تثبيت Electron بشكل صحيح ، يرجى حذف node_modules / electron ومحاولة التثبيت مرة أخرى

خطأ: فشل تثبيت Electron بشكل صحيح ، يرجى حذف node_modules / electron ومحاولة التثبيت مرة أخرى

ijry هل حاولت التثبيت باستخدام جملة --vebose ؟

خطأ: فشل تثبيت Electron بشكل صحيح ، يرجى حذف node_modules / electron ومحاولة التثبيت مرة أخرى

لا شيء مفيد ، أحاول gooogle و google ، لم أعمل أبدًا .................................

أدى هذا إلى حل مشكلتي:
https://stackoverflow.com/questions/42636151/electron-failed-to-install-correctly-please-delete-node-modules-and-try-instal

npm install electron-prebuilt --save-dev

يبدو أنه يجب أن يكون لديك إصدار من الإلكترون المبني مسبقًا مثبتًا في نفس المشروع.

cnpm تثبيت الإلكترون-ز - مطول

MarshallOfSound شكرا انها تعمل بشكل جيد :)

nikparmar لقد تلقيت نفس الخطأ وأنت تستخدم LINUX جرب هذا sudo npm install electron --verbose

لا أفهم ما يكفي عن npm لتصحيح المشكلة الأساسية ولكن يبدو أن تطبيق Electron API Demo لا يقوم بتشغيل المهمة "postinstall": "node install.js" بنجاح. لا يتم إدراج مهمة ما بعد التثبيت هذه عند تشغيل npm install --verbose ولكن يبدو أنها لا تعمل.
بعد التثبيت ، لا بد لي من تشغيل node node_modules/electron/install.js يدويًا

target: 'electron-renderer'

webpack.config.js يستخدم هذا

جرب تثبيت sudo npm --unsafe-perm = true --allow-root

انظر في الرسالة التي تقول أن هناك دليلًا حيث تم تثبيت الحزمة العامة npm. في حالتك هو من الداخل:
* المسار \ البدء السريع للإلكترون \ node_modules *

لذا انتقل إلى هذا الدليل وقم بحذف كل الدليل المسمى بادئة الإلكترون.

الآن تشغيل
npm تثبيت -g رد فعل devtools

بعد ذلك أنت جاهز للانطلاق.

لبدء تشغيل أدوات التطوير ، اكتب الأمر التالي.

رد فعل devtools

جرب تثبيت sudo npm --unsafe-perm = true --allow-root

إنه يعمل بالنسبة لي

لذلك كان npm start يعمل بشكل جيد بدون أخطاء.

لقد قمت بتثبيت منشئ الإلكترون وأنشأت ملف package.json جديدًا لبناء التوزيع.
عندما أقوم بعمل npm run dist ، سيتم إنشاء مثبّت exe لي بنجاح ويمكنني تشغيل التطبيق وتثبيته على ما يرام.

ولكن عندما أقوم بتبديل ملف package.json الخاص بي إلى الملف الأصلي ومحاولة تنفيذ npm start مرة أخرى ، أحصل الآن على هذا الخطأ حول فشل تثبيت الإلكترون بشكل صحيح.

لست متأكدًا من سبب الخطأ ، ولكن الحل التالي نجح معي:

انتقل إلى الدليل node_modules/ واحذف الدليل electron .

ثم قم بتشغيل npm install electron --save-dev

الآن يعمل كل من npm start و npm run dist بشكل جيد بدون أخطاء.

وجدت هذا الحل هنا: https://stackoverflow.com/questions/42636151/electron-failed-to-install-correctly-please-delete-node-modules-and-try-instal

لقد غيرت package.json
من
"electron": "^4.0.1",
ل

   "electron": "^4.1.1",
    "electron-packager": "^13.1.1",
    "electron-tabs": "^0.9.5",

ثم تثبيت npm
إنها تعمل. تظهر النافذة. لكني لا أعرف لماذا ...

عندما أقوم بإعداد electron-quick-start بـ npm install وأعمل بـ npm start فلن يحدث شيء ... أنا على MacBook Pro مع macOS Catalina ... توقفت جميع تطبيقات الإلكترون عن العمل من أجل أنا ... لقد اختبرت حذف الإلكترون المثبت عالميًا وإعادة التثبيت ، وحذف node_modules وإعادة تهيئته ... لقد قمت حتى بإزالة ذاكرة التخزين المؤقت npm ... لذلك لا أعرف ماذا أفعل بعد الآن ...
عندما أقوم بتشغيل electron . يدويًا ، فهذا ما أحصل عليه:

/usr/local/lib/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/usr/local/lib/node_modules/electron/index.js:14:11)
    at Object.<anonymous> (/usr/local/lib/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/electron/cli.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:774:30

همم...
هذا ما كنت أحصل عليه:

$ npm start --verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start', '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb run-script [ 'prestart', 'start', 'poststart' ]
npm info lifecycle [email protected]~prestart: [email protected]
npm info lifecycle [email protected]~start: [email protected]
npm info lifecycle [email protected]~start: ignored because ignore-scripts is set to true [email protected]
npm info lifecycle [email protected]~poststart: [email protected]
npm verb exit [ 0, true ]
npm timing npm Completed in 91ms
npm info ok

لذلك قمت بإيقاف تشغيل نصوص التجاهل باستخدام الأمر npm config set ignore-scripts false وهذا ما أحصل عليه الآن ... خطأ ELIFECYCLE .

$ npm start

> [email protected] start /Users/.../Documents/Javascript/electron-quick-start
> electron .

/Users/.../Documents/Javascript/electron-quick-start/node_modules/electron/index.js:14
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/Users/.../Documents/Javascript/electron-quick-start/node_modules/electron/index.js:14:11)
    at Object.<anonymous> (/Users/.../Documents/Javascript/electron-quick-start/node_modules/electron/index.js:18:18)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
    at Module.load (internal/modules/cjs/loader.js:641:32)
    at Function.Module._load (internal/modules/cjs/loader.js:556:12)
    at Module.require (internal/modules/cjs/loader.js:681:19)
    at require (internal/modules/cjs/helpers.js:16:16)
    at Object.<anonymous> (/Users/.../Documents/Javascript/electron-quick-start/node_modules/electron/cli.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:774:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `electron .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start 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:
npm ERR!     /Users/.../.npm/_logs/2019-11-29T16_52_39_548Z-debug.log

حسنًا ... ماذا يحدث؟ عندما أستخدم الغزل فإنه يعمل ...
https://github.com/electron/electron-quick-start/issues/155#issuecomment -343283182

yarn run start

كنت في الانتظار ، لكن يبدو أنني أراه يفشل في العثور على المثبت.

F: \ testelectron-quick-start> npm تثبيت الإلكترون - الإفراط
معلومات npm أنها تعمل إذا كانت تنتهي بـ "موافق"
npm verb cli ['C: \ Program Files \ nodejs \ node.exe'،
npm فعل cli 'C: \ Users \ Administrator \ AppData \ Roaming \ npm \ node_modules \ npm \ bin \ npm-cli.js' ،
npm فعل cli "تثبيت" ،
npm فعل cli "إلكترون" ،
npm فعل cli '- overbose']
معلومات npm باستخدام
معلومات npm باستخدام
npm فعل npm جلسة 5dd5cd74a42cab9c
npm http fetch GET 304 http://registry.npm.taobao.org/electron 173ms (من ذاكرة التخزين المؤقت)
مرحلة توقيت npm
مرحلة توقيت npm
مرحلة توقيت npm
npm http جلب GET 304 http://registry.npm.taobao.org/@electron٪2fget 61ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/extract-zip 95ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/@types٪2fnode 100ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/env-paths 66ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/fs-extra 73ms (من ذاكرة التخزين المؤقت)
npm http جلب الحصول على 304 http://registry.npm.taobao.org/debug 77ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/global-agent 96ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/got 106ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/global-tunnel-ng 118ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/sumchecker 277ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/sanitize-filename 465ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/ms 43ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/universalify 51ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/graceful-fs 59ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/jsonfile 62ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/matcher 66ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/core-js 72ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/es6-error 80ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/roarr 83ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/semver 90ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/boolean 97ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/serialize-error 109ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/escape-string-regexp 48ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/json-stringify-safe 69ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/detect-node 72ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/semver-compare 75ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/globalthis 79ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/sprintf-js 80ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/function-bind 46ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/object-keys 58ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/define-properties 63ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/type-fest 44ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/npm-conf 53ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/tunnel 55ms (من ذاكرة التخزين المؤقت)
npm http جلب الحصول على 304 http://registry.npm.taobao.org/lodash 70ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/encodeurl 97ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/config-chain 42ms (من ذاكرة التخزين المؤقت)
npm http جلب الحصول على 304 http://registry.npm.taobao.org/pify 52ms (من ذاكرة التخزين المؤقت)
npm http جلب الحصول على 304 http://registry.npm.taobao.org/proto-list 48ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/ini 53ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/@sindresorhus٪2fis 75ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/decompress-response 90ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/@szmarczak٪2fhttp-timer 95ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/duplexer3 98ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/cacheable-request 100ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/to-readable-stream 100ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/lowercase-keys 104ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/get-stream 110ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/mimic-response 146ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/url-parse-lax 73ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/p-cancelable 982ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/defer-to-connect 44ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/clone-response 60ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/responselike 67ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/keyv 72ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/http-cache-semantics 77ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/normalize-url 81ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/pump 64ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/end-of-stream 46ms (from cache)
npm http fetch GET 304 http://registry.npm.taobao.org/once 48ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/wrappy 52ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/json-buffer 46ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/prepend-http 51ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/truncate-utf8-bytes 133ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/utf8-byte-length 93ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/yauzl 47ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/mkdirp 59ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/concat-stream 725ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/buffer-from 52ms (من ذاكرة التخزين المؤقت)
npm http جلب الحصول على 304 http://registry.npm.taobao.org/typedarray 58ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/readable-stream 59ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/inherits 64ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/isarray 61ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/core-util-is 63ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/safe-buffer 64ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/process-nextick-args 67ms (من ذاكرة التخزين المؤقت)
npm http جلب GET 304 http://registry.npm.taobao.org/string_decoder 73ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/util-deprecate 78ms (من ذاكرة التخزين المؤقت)
npm http جلب الحصول على 304 http://registry.npm.taobao.org/minimist 43ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/fd-slicer 49ms (من ذاكرة التخزين المؤقت)
npm http fetch GET 304 http://registry.npm.taobao.org/pend 46ms (from cache)
مرحلة توقيت npm
مرحلة توقيت npm
مرحلة توقيت npm إنشاء الإجراءات التي يجب أخذها في 13 مللي ثانية
npm الفعل الصحيح Mkdir C: \ Users \ Administrator \ AppData \ Roamingnpm-cache_locks trueMkdir ليس في رحلة ؛ جار تهيئة
npm فعل makeCacheDir UID & GID غير ذي صلة في win32
قفل الفعل npm باستخدام C: \ Users \ Administrator \ AppData \ Roamingnpm-cache_locksstaging-7ab5b6ace88370a8.lock لـ F: \ testelectron-quick-start \ node_modules.staging
إجراء توقيت npm الاستخراج في 27 مللي ثانية
دورة حياة معلومات npm [email protected] ~ التثبيت المسبق: [email protected]
دورة حياة المعلومات npm [email protected] ~ إلغاء التثبيت: [email protected]
npm verb unbuild rmStuff [email protected] من F: \ testelectron-quick-start \ node_modules
دورة حياة معلومات npm [email protected] ~ postuninstall: [email protected]
إجراء توقيت npm
إجراء توقيت npm
إجراء توقيت npm
إجراء توقيت npm
دورة حياة معلومات npm [email protected] ~ التثبيت المسبق: [email protected]
إجراء توقيت npm التثبيت المسبق في 1 مللي ثانية
npm info linkStuff [email protected]
npm verb linkBins [{electron: 'cli.js'}،
npm فعل linkBins 'F: \ test \ electron-quick-start \ node_modules \ .bin'،
رابط فعل npm خطأ]
npm http جلب POST 404 http://registry.npm.taobao.org/-/npm/v1/security/audits/quick 108ms
إجراء توقيت npm البناء في 18 مللي ثانية
دورة حياة المعلومات npm [email protected] ~ install: [email protected]
إجراء توقيت npm التثبيت في 2 مللي ثانية
دورة حياة معلومات npm [email protected] ~ postinstall: [email protected]

[email protected] postinstall F: \ testelectron-quick-start \ node_moduleselectron
العقدة install.js

لقد وجدت طريقة في المنطقة الصينية.

الخطوة 1. npm تثبيت الإلكترون
الخطوة 2. قم بتنزيل ملف zip الإلكتروني من https://github.com/electron/electron/releases/download/v7.1.7/electron-v7.1.7-darwin-x64.zip
الخطوة 3. انسخ ملف zip إلى / electron / dist
الخطوة 4. vi ./node_modules/electron/path.txt والإدخال /electron-v7.1.7-darwin-x64/Electron.app/Contents/MacOS/Electron

أخيرًا ، يمكنك تشغيل بدء تشغيل npm.

لكنها ليست طريقة جيدة لبدء الإلكترون.

لقد حاولت اتباع معظم الإرشادات ويتم تثبيت كل شيء بشكل صحيح ولكن ما زلت أعاني من نفس المشكلة.

إذا كنت صينيًا ، فقد تكون الإرشادات التالية مفيدة لك.

  1. افتح كروم الخاص بك والصق عنوان url https://github.com/electron/electron/releases/download/v7.1.7/electron-v7.1.7-darwin-x64.zip ، يجب عليك تغيير الإصدار إلى الإصدار الصحيح وعنوان url هذا استنادًا إلى macOS إذا كنت تستخدم نظام التشغيل Windows ، فحاول debug install.js الحصول على عنوان url الصحيح

  2. احفظ الملف المضغوط في أي مجلد ، على سبيل المثال ، Desktop . الآن مسار ملف zip هو /Users/yourname/Desktop/electron-v7.1.7-darwin-x64.zip . لاحظ الإصدار

  3. افتح ثم node_modules/electron/install.js علق على الكود التالي ، وأضف سطرًا جديدًا:

    extractFile(myPath in the second step)

// downloads if not cached
// downloadArtifact({
//   version,
//   artifactName: 'electron',
//   force: process.env.force_no_cache === 'true',
//   cacheRoot: process.env.electron_config_cache,
//   platform: process.env.npm_config_platform || process.platform,
//   arch: process.env.npm_config_arch || process.arch
// }).then((zipPath) => extractFile(zipPath)).catch((err) => onerror(err))
// Node: the new line
extractFile(myPath in the second step)
  1. قم بتشغيل install.js node install.js
  2. قم بتشغيل البرنامج النصي لبدء مشروعك: npm start

أفضل طريقة هي استخدام مرآة Taobao:
قم بإنشاء ملف .npmrc في الدليل الجذر ، محتوى الملف

electron-mirror=https://npm.taobao.org/mirrors/electron/
electron-custom-dir=8.0.2
// 下面这个是我自己用到的.. 上面两个是针对electron的
node-sqlite3_binary_host_mirror=https://npm.taobao.org/mirrors/

الإصدار وفقًا لاحتياجاتك

حل على Raspberry Pi4 مع:
npm i -D electron --arch=armv7l

إذا كنت تستخدم حزمة الويب لبناء مشروع ، فيجب عليك إضافة الإلكترون إلى العناصر الخارجية لتكوين حزمة الويب الخاصة بك.

على نظام Mac بعد تثبيت الإلكترون ، جرب:

sudo node /node_modules/electron/install.js

* sudo مطلوب

justgeek ،

أدى هذا إلى حل مشكلتي:
https://stackoverflow.com/questions/42636151/electron-failed-to-install-correctly-please-delete-node-modules-and-try-instal

npm install electron-prebuilt --save-dev

يبدو أنه يجب أن يكون لديك إصدار من الإلكترون المبني مسبقًا مثبتًا في نفس المشروع.

اقتراحك حل مشكلتي. ولكن هل نحتاج إلى تثبيت كل من Electron @ latest و [email protected] ؟؟

أنا شخصياً جربت جميع الاقتراحات هنا ولا يبدو أن شيئًا يتجاوز هذه المشكلة. أنا على جهاز Mac وقد تكون مشكلة في الخادم الوكيل من طرفي.

على نظام التشغيل windows ، كنت أحاول تجربة الإلكترون لأول مرة ، وذهبت إلى المستندات الرسمية ولم أستطع حتى تشغيل تطبيق البدء السريع بسبب الخطأ نفسه ، وحاولت إجراء الكثير من الإصلاحات ، لا شيء يعمل. الذهاب إلى نسخ ولصق ملف .zip يدويًا المقدم: (

فشل Node install.js بسبب الأذونات الممنوحة لي ، لذا حل ما يلي مشكلتي.

sudo npm install electron --unsafe-perm=true --allow-root

لا حاجة لتنزيل الثنائيات سابقة الإنشاء أو الإصدارات الأقدم من الإلكترون.

جربها. 🤓
https://github.com/pangxieju/electron-fix

شكرا! جعلت مشروعي يعمل!

جربها. 🤓 افتح https://github.com/pangxieju/electron-fix

1 、 $ npm تثبيت Electron-fix -D

2 ، تحرير ملف "package.json"
"نصوص": {
"الإصلاح": "بدء الإصلاح الإلكتروني"
}

3 、 npm تشغيل الإصلاح

بالنسبة لأولئك الذين لا يقومون بالتنزيل من هونج كونج ولم يكتشفوا المشكلة بعد ، لاحظت أخيرًا أحد التعليقات في هذه السلسلة الطويلة.

عندما قمت بتشغيل npm i electron -g --verbose ، لاحظت السطر التالي:

npm info lifecycle [email protected]~postinstall: ignored because ignore-scripts is set to true [email protected]

أدى القيام بما يلي إلى إصلاح مشكلتي:

لا أفهم ما يكفي عن npm لتصحيح المشكلة الأساسية ولكن يبدو أن تطبيق Electron API Demo لا يقوم بتشغيل المهمة "postinstall": "node install.js" بنجاح. لا يتم إدراج مهمة ما بعد التثبيت هذه عند تشغيل npm install --verbose ولكن يبدو أنها لا تعمل.
بعد التثبيت ، لا بد لي من تشغيل node node_modules/electron/install.js يدويًا

منذ أن قمت بالتثبيت عالميًا ، استخدمت install.js الموجود في دليل التثبيت العالمي ، ./AppData/Roaming/npm/

يبدو أنك تواجه بعض مشكلات الشبكة (الخارجة عن سيطرتنا 😢)

يمكنك تنزيل ملف ZIP يدويًا في متصفحك من هنا ووضعه في مجلد C:\Users\<username>\.electron . ثم لن يحتاج إلى تنزيل نفسه 👍

على الرغم من عدم وجود أي مشكلات في الشبكة ، إلا أن المشكلة كانت بسبب التثبيت الخاطئ للإلكترون عند تشغيل تثبيت npm لأول مرة. تم حذف مجلد .electron-gyp في C: \ Users \المجلد وأصدر اسم تثبيت إعلان ثم نجح.

تشمل الوحدات النمطية dir install.js وتشغيلها وتثبيتها ، ويتم كتابة path.txt. إنها تعمل

ما هي تفاصيل هذه الخطوة

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات