Open Napsty opened 3 years ago
Same for me, I attached the debug log. System Setup:
Same for me. I tried on Windows 10, macOS 10.15, Raspberry Pi 4B with raspberry OS. On Windows and Mac, it showed a lot of compile errors. On Raspberry Pi, it showed some issue related to electron. If you're going to work on these issues and need logs, you can reply me and I'll find and attach them.
Hi, you can try replace your package.json with this one: https://github.com/suegy/odas_web/blob/master/package.json and see you if you can install then? You might also need the package-lock.json
I replaced the package.json
and it showed same issue. I then cloned the repo from https://github.com/suegy/odas_web.git
, and it still cannot be installed on Windows, Mac and Raspberry Pi. Screenshots are shown below. If you're going to work on these issues and need logs, you can reply me and I'll find and attach them.
I looked up https://www.electronjs.org/docs/tutorial/installation
and figured out it's a problem related to network connection. It seems that npm
cannot identify and use system proxy. So I manually installed electron via choco
on Windows and brew
on Mac, and was able to start the program via electron. But it still needs more testing.
I figured out that package-lock.json
should be copied alone with package.json
, and that works.
The rest of the project in that repo goes into a different direction so the two files should work. Glad it helped.
On Sat, 10 Jul 2021 at 10:55, Kevin Tan @.***> wrote:
I figured out that package-lock.json should be copied alone with package.json, and that works.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/introlab/odas_web/issues/66#issuecomment-877609281, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOBRCTWXGLAD24GPRVJIPLTXAKKVANCNFSM46XIQ7YA .
Thanks~ This is my very first time to work with node.js and electron app. After installation, the overall filesize of the app is incredibly large, which takes up to 836 MB disk space.
I'm having same issues as above. Have tried all suggestions still same problem. Here is my error log file:
2021-08-04T09_33_28_688Z-debug.log
Open to any suggestions.
try to update node version (I'm using latest v14) and clear cache:
npm cache clean --force
rm -rf node_modules package-lock.json
and then :
npm install
@assafge it's really helpful! thanks
This may or may not helps others who is having various installation errors, I recently managed to compile v0.3.0 code on Windows/Ubuntu/Raspbian after hitting various errors on these platforms.
Starting fresh from git clone https://github.com/introlab/odas_web.git
, only line I have changed in package.json
is adding -p
flag in postinstall
to speed up the build a bit, so:
"postinstall": "./node_modules/.bin/electron-rebuild -p"
On Windows I also have to change the slashes so command can be executed under CMD (Administrator):
"postinstall": "node_modules\\.bin\\electron-rebuild -p
Without modifying anything else in package.json
, I then do npm update
. Previously I was trying various suggestions posted here and stackoverflow, by changing installed npm packages versions etc. They all seems hit and miss for me when I tried them on Windows/Ubuntu/Raspbian. In my case, these are what I have on all three platforms:
On Windows:
>npm list -g
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
C:\Program Files\nodejs\node_global
-- npm@8.17.0
>npm version
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
{
odas_studio: '0.3.0',
npm: '8.17.0',
node: '16.16.0',
v8: '9.4.146.24-node.21',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '93',
nghttp2: '1.47.0',
napi: '8',
llhttp: '6.0.7',
openssl: '1.1.1q+quic',
cldr: '40.0',
icu: '70.1',
tz: '2021a3',
unicode: '14.0',
ngtcp2: '0.1.0-DEV',
nghttp3: '0.1.0-DEV'
}
On Ubuntu:
$ npm list -g
/usr/local/lib
└── npm@8.17.0
$ npm version
{
odas_studio: '0.3.0',
npm: '8.17.0',
node: '12.22.9',
v8: '7.8.279.23-node.56',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '72',
nghttp2: '1.43.0',
napi: '8',
llhttp: '2.1.4',
http_parser: '2.9.4',
openssl: '1.1.1m',
cldr: '40.0',
icu: '70.1',
tz: '2022a',
unicode: '14.0'
}
On Raspbian:
$ npm list -g
/usr/local/lib
├── corepack@0.10.0
└── npm@8.17.0
$ npm version
{
odas_studio: '0.3.0',
npm: '8.17.0',
node: '16.16.0',
v8: '9.4.146.24-node.21',
uv: '1.43.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.18.1',
modules: '93',
nghttp2: '1.47.0',
napi: '8',
llhttp: '6.0.7',
openssl: '1.1.1q+quic',
cldr: '40.0',
icu: '70.1',
tz: '2021a3',
unicode: '14.0',
ngtcp2: '0.1.0-DEV',
nghttp3: '0.1.0-DEV'
}
In all cases, after running npm update
, they all get the same package versions:
$ npm list
odas_studio@0.3.0 /home/pi/odas_web
├── @google-cloud/speech@3.2.0
├── electron-rebuild@1.8.5
├── electron@5.0.3
├── grpc@1.24.11
├── ip@1.1.5
├── mathjs@6.0.1
├── node-localstorage@1.3.1
├── systeminformation@4.9.0
├── wav-file-info@0.0.8
└── wav@1.0.2
After that, running npm install
builds odas_studio successfully on all three platforms for me.
My platform environments:
Windows(x64): Windows 10, Python 3.9.7 Ubuntu(x64): Ubuntu 22.04.1 LTS, Python 3.10.4 Raspbian(RPI4): Raspbian GNU/Linux 10 (buster), Python 3.7.3
I looked up
https://www.electronjs.org/docs/tutorial/installation
and figured out it's a problem related to network connection. It seems thatnpm
cannot identify and use system proxy. So I manually installed electron viachoco
on Windows andbrew
on Mac, and was able to start the program via electron. But it still needs more testing.
this saved my life. thank you.
Unfortunately
npm install
doesn't work here.Log: