Серийный порт восстановления электронов не удается - PullRequest
0 голосов
/ 23 марта 2020

При попытке использовать электронное восстановление я получаю следующую ошибку. Я работаю над Windows 10. Я только пытаюсь скомпилировать электронный и последовательный порт.

Я пытался { ссылка } этот ответ тоже безуспешно.

Заранее спасибо!

Попытка переустановки windows -build-tools, не сработала. версия windows-build-tools@15.9.21

Ошибка:

$  ./node_modules/.bin/electron-rebuild
- Searching dependency tree
× Rebuild Failed

An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@6.1.0
gyp info using node@12.16.1 | win32 | x64
gyp info find Python using Python version 2.7.17 found at "C:\Python27\python.exe"
gyp info find VS using VS2017 (15.9.28307.1064) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\@serialport\\bindings\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Corzo Tomás\\.electron-gyp\\8.1.1\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Corzo Tomás\\.electron-gyp\\8.1.1',
gyp info spawn args   '-Dnode_gyp_dir=D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\Corzo Tomás\\\\.electron-gyp\\\\8.1.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\@serialport\\bindings',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\@serialport\\bindings\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
Traceback (most recent call last):
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\gyp_main.py", line 50, in <module>
    sys.exit(gyp.script_main())
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 554, in script_main
    return main(sys.argv[1:])
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 547, in main
    return gyp_main(args)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 532, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2015, in GenerateOutput
    generator_flags))
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 950, in _GenerateProject
    return _GenerateMSBuildProject(project, options, version, generator_flags)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 3396, in _GenerateMSBuildProject
    easy_xml.WriteXmlIfChanged(content, project.path, pretty=True, win32=True)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\easy_xml.py", line 123, in WriteXmlIfChanged
    xml_string = xml_string.encode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 2804: ordinal not in range(128)
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:311:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "G:\\Program Files\\nodejs\\node.exe" "D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=8.1.1" "--arch=x64" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd D:\OneDrive\000-Development\Electron\dou\node_modules\@serialport\bindings
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1

Error: gyp info it worked if it ends with ok
gyp info using node-gyp@6.1.0
gyp info using node@12.16.1 | win32 | x64
gyp info find Python using Python version 2.7.17 found at "C:\Python27\python.exe"
gyp info find VS using VS2017 (15.9.28307.1064) found at:
gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
gyp info find VS run with --verbose for detailed information
gyp info spawn C:\Python27\python.exe
gyp info spawn args [
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\@serialport\\bindings\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\Corzo Tomás\\.electron-gyp\\8.1.1\\include\\node\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\Corzo Tomás\\.electron-gyp\\8.1.1',
gyp info spawn args   '-Dnode_gyp_dir=D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp',
gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\Corzo Tomás\\\\.electron-gyp\\\\8.1.1\\\\<(target_arch)\\\\node.lib',
gyp info spawn args   '-Dmodule_root_dir=D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\@serialport\\bindings',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\@serialport\\bindings\\build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
Traceback (most recent call last):
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\gyp_main.py", line 50, in <module>
    sys.exit(gyp.script_main())
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 554, in script_main
    return main(sys.argv[1:])
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 547, in main
    return gyp_main(args)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 532, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 2015, in GenerateOutput
    generator_flags))
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 950, in _GenerateProject
    return _GenerateMSBuildProject(project, options, version, generator_flags)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\generator\msvs.py", line 3396, in _GenerateMSBuildProject
    easy_xml.WriteXmlIfChanged(content, project.path, pretty=True, win32=True)
  File "D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\gyp\pylib\gyp\easy_xml.py", line 123, in WriteXmlIfChanged
    xml_string = xml_string.encode(encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 2804: ordinal not in range(128)
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (D:\OneDrive\000-Development\Electron\dou\node_modules\node-gyp\lib\configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:311:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "G:\\Program Files\\nodejs\\node.exe" "D:\\OneDrive\\000-Development\\Electron\\dou\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=8.1.1" "--arch=x64" "--dist-url=https://www.electronjs.org/headers" "--build-from-source"
gyp ERR! cwd D:\OneDrive\000-Development\Electron\dou\node_modules\@serialport\bindings
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v6.1.0
gyp ERR! not ok

Failed with exit code: 1
    at SafeSubscriber._error (D:\OneDrive\000-Development\Electron\dou\node_modules\spawn-rx\lib\src\index.js:267:84)
    at SafeSubscriber.__tryOrUnsub (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:205:16)
    at SafeSubscriber.error (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:156:26)
    at Subscriber._error (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:92:26)
    at Subscriber.error (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:72:18)
    at MapSubscriber.Subscriber._error (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:92:26)
    at MapSubscriber.Subscriber.error (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:72:18)
    at SafeSubscriber._next (D:\OneDrive\000-Development\Electron\dou\node_modules\spawn-rx\lib\src\index.js:242:65)
    at SafeSubscriber.__tryOrUnsub (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:205:16)
    at SafeSubscriber.next (D:\OneDrive\000-Development\Electron\dou\node_modules\rxjs\internal\Subscriber.js:143:22)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...