Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing in Ubuntu 20.04 #135

Open
mondeja opened this issue Oct 25, 2020 · 0 comments
Open

Error installing in Ubuntu 20.04 #135

mondeja opened this issue Oct 25, 2020 · 0 comments

Comments

@mondeja
Copy link

mondeja commented Oct 25, 2020

Seems an error with electron. Installing with root user raises the same error:

$ sudo npm install -g vmd
npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated @types/[email protected]: 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

> [email protected] 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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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 [email protected]: 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: [email protected] 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 [email protected]
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 [email protected] postinstall: `node install.js`
11243 error Exit status 1
11244 error Failed at the [email protected] postinstall script.
11244 error This is probably not a problem with npm. There is likely additional logging output above.
11245 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant