evolus / pencil

The Pencil Project's unique mission is to build a free and opensource tool for making diagrams and GUI prototyping that everyone can use.
http://pencil.evolus.vn
GNU General Public License v2.0
9.09k stars 721 forks source link

Inconsistencies in running, and Missing node_modules/.bin/build ? #626

Open jaggzh opened 4 years ago

jaggzh commented 4 years ago

I ran this last week, but just returned to the project and npm start just sat there after RENDERER started.

I believe I'd done some Nvidia/CUDA updates since then, so there might be some issue with that. I noticed hardware acceleration was disabled. In any case, there is other stuff going on too, eventually ending up with the message that I have to change chrome-sandbox to root and such. (Someone else reported that ownership/perm issue in debian here https://github.com/evolus/pencil/issues/598)

> Pencil@ start /home/jaggz/projects/pencil
> electron ./app

useHWAConfig:  false
Hardware acceleration disabled for Linux.
Background web-printer started.
Shortcut main service started.
Shortcut: Super+F12 registered
RENDERER started.```

Sooo...
```$ npm install

> Pencil@ postinstall /home/jaggz/projects/pencil
> install-app-deps

  • please use as subcommand: electron-builder install-app-deps
  • electron-builder version=20.28.4
  • loaded configuration file=package.json ("build" field)
  • installing production dependencies platform=linux arch=x64 appDir=/home/jaggz/projects
rj/pencil/app
audited 392 packages in 5.89s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
$ npm audit fix
up to date in 1.09s
fixed 0 of 1 vulnerability in 392 scanned packages
  1 package update for 1 vulnerability involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` fo
r steps to fix these manually)

Somehow, a build script/binary isn't available:



> Pencil@ dist:linux /home/jaggz/projects/pencil
> build --linux --ia32 --x64

sh: 1: build: not found
npm ERR! code ELIFECYCLE
...```

I forced a breaking change update of one module, just for kicks. That didn't fix it (obviously).

I did an npm clean-install, followed by npm install too.
In any case, now I'm back to another problem running, which I posted about in another issue:
[9048:0529/141547.917413:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/jaggz/projects/pencil/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.

After that I tried ```node_modules/.bin/electron-builder install-app-deps```
...but that doesn't fix anything.
jaggzh commented 4 years ago

Oh, I also tried removing the node_modules directory and re-npm installing. Still getting the SUID sandbox helper issue.