weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.14k stars 45 forks source link

Installation error #489

Closed isavl closed 2 years ago

isavl commented 2 years ago

Trying install with command :CocInstall coc-explorer but got error:

` npm install exited with 127

58 verbose stack Error: command failed 58 verbose stack at ChildProcess. (/home/badman/.local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27) 58 verbose stack at ChildProcess.emit (node:events:394:28) 58 verbose stack at maybeClose (node:internal/child_process:1067:16) 58 verbose stack at Socket. (node:internal/child_process:453:11) 58 verbose stack at Socket.emit (node:events:394:28) 58 verbose stack at Pipe. (node:net:672:12) 59 verbose pkgid coc-explorer@0.20.0 60 verbose cwd /tmp/vyGYcY8/coc-explorer-DjD8yX 61 verbose Linux 5.13.10-1.fc35.x86_64 62 verbose argv "/usr/bin/node" "/home/badman/.local/bin/npm" "install" "--ignore-scripts" "--no-lockfile" "--production" "--legacy-peer-deps" 63 verbose node v16.5.0 64 verbose npm v8.1.2 65 error code 127 66 error path /tmp/vyGYcY8/coc-explorer-DjD8yX 67 error command failed 68 error command sh -c run-s clean build 69 error sh: line 1: run-s: command not found 70 verbose exit 127 ` Missing space between run command and -s argument?

weirongxu commented 2 years ago

Can't be reproduced, it may be a problem with your nodejs or npm configuration, npm install --ignore-scripts should not execute the scripts on package.json

weirongxu commented 2 years ago

For your information, I'm using node v16.5.0 and npm v8.1.2 and did cache cleanup npm clear cache --force and still can't reproduce this error

isavl commented 2 years ago

Aha, my npmrc config have 3 lines:

prefix = ${HOME}/.local

global = true
global-style = true

When i delete npmrc config file coc-exlorer install without fail.

Why?

weirongxu commented 2 years ago

coc.nvim does not expect users to configure global=true, so it does not support this. I have submitted a PR to coc.nvim.

weirongxu commented 2 years ago

PR has been merged into the coc.nvim master branch