Closed gaganjakhotiya closed 5 years ago
console log
╰─○ sudo npm install devtool -g /usr/local/bin/devtool -> /usr/local/lib/node_modules/devtool/bin/index.js > electron@1.4.15 postinstall /usr/local/lib/node_modules/devtool/node_modules/electron > node install.js /usr/local/lib/node_modules/devtool/node_modules/electron/install.js:46 throw err ^ Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/devtool/node_modules/electron/.electron' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/devtool/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron@1.4.15 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@1.4.15 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! /home/prodigy/.npm/_logs/2017-10-09T06_33_22_526Z-debug.log
npm logs
7535 silly postinstall electron@1.4.15 7536 info lifecycle electron@1.4.15~postinstall: electron@1.4.15 7537 verbose lifecycle electron@1.4.15~postinstall: unsafe-perm in lifecycle false 7538 verbose lifecycle electron@1.4.15~postinstall: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/devtool/node_modules/electron/node_modules/.bin:/usr/local/lib/node_modules/devtool/node_modules/.bin:/usr/local/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin 7539 verbose lifecycle electron@1.4.15~postinstall: CWD: /usr/local/lib/node_modules/devtool/node_modules/electron 7540 silly lifecycle electron@1.4.15~postinstall: Args: [ '-c', 'node install.js' ] 7541 silly lifecycle electron@1.4.15~postinstall: Returned: code: 1 signal: null 7542 info lifecycle electron@1.4.15~postinstall: Failed to exec postinstall script 7543 verbose unlock done using /home/prodigy/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 7544 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules/devtool/node_modules/fsevents): 7545 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 7546 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin 7546 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any 7546 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux 7546 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 7547 verbose stack Error: electron@1.4.15 postinstall: `node install.js` 7547 verbose stack Exit status 1 7547 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:280:16) 7547 verbose stack at emitTwo (events.js:125:13) 7547 verbose stack at EventEmitter.emit (events.js:213:7) 7547 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 7547 verbose stack at emitTwo (events.js:125:13) 7547 verbose stack at ChildProcess.emit (events.js:213:7) 7547 verbose stack at maybeClose (internal/child_process.js:927:16) 7547 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 7548 verbose pkgid electron@1.4.15 7549 verbose cwd /media/prodigy/Data/codebase/rblog 7550 verbose Linux 4.10.0-35-generic 7551 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "devtool" "-g" 7552 verbose node v8.4.0 7553 verbose npm v5.4.1 7554 error code ELIFECYCLE 7555 error errno 1 7556 error electron@1.4.15 postinstall: `node install.js` 7556 error Exit status 1 7557 error Failed at the electron@1.4.15 postinstall script.
console log
npm logs