在i686上运行electronic.js吗?

时间:2019-01-20 23:48:26

标签: node.js architecture electron

我读到electron framework system requirements包含一个i686。

但是,当我尝试在i686(Intel Atom处理器)上运行它们时,出现以下错误消息:

leeand00@lenovo:~/Documents/lifehacker organized/docs/electronTest$ cat /home/leeand00/.npm/_logs/2019-01-17T21_24_35_452Z-d
ebug.log
0 info it worked if it ends with ok
1 verbose cli [ '/snap/node/1425/bin/node',
1 verbose cli   '/snap/node/1425/bin/npm',
1 verbose cli   'start' ]
2 info using npm@6.4.1
3 info using node@v10.14.2
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle electrontest@1.0.0~prestart: electrontest@1.0.0
6 info lifecycle electrontest@1.0.0~start: electrontest@1.0.0
7 warn lifecycle The node binary used for scripts is /usr/bin/node but npm is using /snap/node/1425/bin/node itself. Use the
 `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
8 verbose lifecycle electrontest@1.0.0~start: unsafe-perm in lifecycle true
9 verbose lifecycle electrontest@1.0.0~start: PATH: /snap/node/1425/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp
-bin:/home/leeand00/Documents/lifehacker organized/docs/electronTest/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/s
bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle electrontest@1.0.0~start: CWD: /home/leeand00/Documents/lifehacker organized/docs/electronTest
11 silly lifecycle electrontest@1.0.0~start: Args: [ '-c', 'electron .' ]
12 silly lifecycle electrontest@1.0.0~start: Returned: code: 1  signal: null
13 info lifecycle electrontest@1.0.0~start: Failed to exec start script
14 verbose stack Error: electrontest@1.0.0 start: `electron .`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/snap/node/1425/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:3
01:16)
14 verbose stack     at EventEmitter.emit (events.js:182:13)
14 verbose stack     at ChildProcess.<anonymous> (/snap/node/1425/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.
js:55:14)
leeand00@lenovo:~/Documents/lifehacker organized/docs/electronTest$ /snap/bin/npm --scripts-prepend-node-path /snap/bin/node
  start
npm WARN invalid config scripts-prepend-node-path="/snap/bin/node"
npm WARN lifecycle The node binary used for scripts is /usr/bin/node but npm is using /snap/node/1425/bin/node itself. Use t
he `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> electrontest@1.0.0 start /home/leeand00/Documents/lifehacker organized/docs/electronTest
> electron .

我是否必须以其他方式安装/编译电子才能在i686上使用它?

我确实有一个i686:

leeand00@lenovo:~/Documents/lifehacker organized/docs/electronTest$ lscpu
Architecture:          i686
CPU op-mode(s):        32-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    2
Core(s) per socket:    1
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 28
Model name:            Intel(R) Atom(TM) CPU N270   @ 1.60GHz
Stepping:              2
CPU MHz:               1600.000
CPU max MHz:           1600.0000
CPU min MHz:           800.0000
BogoMIPS:              3191.99
L1d cache:             24K
L1i cache:             32K
L2 cache:              512K
Flags:                 fpu vme de tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss h
t tm pbe nx constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe lahf_lm dt
herm

0 个答案:

没有答案