Skip to content

Error installing in Ubuntu 20.04 #135

Description

@mondeja

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

/root/.npm/_logs/2020-10-25T12_56_17_067Z-debug.log

11231 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/vmd/node_modules/chokidar/node_modules/fsevents):
11232 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
11233 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
11233 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
11233 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
11233 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
11234 verbose stack Error: electron@3.1.13 postinstall: `node install.js`
11234 verbose stack Exit status 1
11234 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
11234 verbose stack     at EventEmitter.emit (events.js:315:20)
11234 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
11234 verbose stack     at ChildProcess.emit (events.js:315:20)
11234 verbose stack     at maybeClose (internal/child_process.js:1048:16)
11234 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
11235 verbose pkgid electron@3.1.13
11236 verbose cwd /home/mondeja
11237 verbose Linux 5.4.0-52-generic
11238 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "vmd"
11239 verbose node v14.14.0
11240 verbose npm  v6.14.8
11241 error code ELIFECYCLE
11242 error errno 1
11243 error electron@3.1.13 postinstall: `node install.js`
11243 error Exit status 1
11244 error Failed at the electron@3.1.13 postinstall script.
11244 error This is probably not a problem with npm. There is likely additional logging output above.
11245 verbose exit [ 1, true ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions