Seems an error with electron. Installing with root user raises the same error:
$ sudo npm install -g vmd
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
/usr/bin/vmd -> /usr/lib/node_modules/vmd/bin/cli.js
> electron@3.1.13 postinstall /usr/lib/node_modules/vmd/node_modules/electron
> node install.js
/usr/lib/node_modules/vmd/node_modules/electron/install.js:49
throw err
^
[Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/vmd/node_modules/electron/.electron'] {
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/usr/lib/node_modules/vmd/node_modules/electron/.electron'
}
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/vmd/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@3.1.13 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@3.1.13 postinstall 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! /root/.npm/_logs/2020-10-25T12_56_17_067Z-debug.log
Seems an error with electron. Installing with
root
user raises the same error:/root/.npm/_logs/2020-10-25T12_56_17_067Z-debug.log