Closed
Description
I'm getting an error when trying to install as root
with npm install -g bash-language-server
, here is the log from /root/.npm/_logs/*.log
(after the successful dependencies installations):
4873 silly install tree-sitter@0.13.23
4874 info lifecycle tree-sitter@0.13.23~install: tree-sitter@0.13.23
4875 verbose lifecycle tree-sitter@0.13.23~install: unsafe-perm in lifecycle false
4876 verbose lifecycle tree-sitter@0.13.23~install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib/node_modules/bash-language-server/node_modules/tree-sitter/node_modules/.bin:/usr/lib/node_modules/bash-language-server/node_modules/.bin:/usr/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/android-sdk/platform-tools:/opt/android-sdk/tools:/opt/android-sdk/tools/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
4877 verbose lifecycle tree-sitter@0.13.23~install: CWD: /usr/lib/node_modules/bash-language-server/node_modules/tree-sitter
4878 silly lifecycle tree-sitter@0.13.23~install: Args: [ '-c', 'prebuild-install || node-gyp rebuild' ]
4879 silly lifecycle tree-sitter@0.13.23~install: Returned: code: 1 signal: null
4880 info lifecycle tree-sitter@0.13.23~install: Failed to exec install script
4881 timing action:install Completed in 418ms
4882 verbose unlock done using /root/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
4883 timing stage:rollbackFailedOptional Completed in 267ms
4884 timing stage:runTopLevelLifecycles Completed in 50001ms
4885 verbose stack Error: tree-sitter@0.13.23 install: `prebuild-install || node-gyp rebuild`
4885 verbose stack Exit status 1
4885 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
4885 verbose stack at EventEmitter.emit (events.js:182:13)
4885 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
4885 verbose stack at ChildProcess.emit (events.js:182:13)
4885 verbose stack at maybeClose (internal/child_process.js:978:16)
4885 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
4886 verbose pkgid tree-sitter@0.13.23
4887 verbose cwd /root
4888 verbose Linux 4.19.2-arch1-1-ARCH
4889 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "bash-language-server"
4890 verbose node v11.2.0
4891 verbose npm v6.4.1
4892 error code ELIFECYCLE
4893 error errno 1
4894 error tree-sitter@0.13.23 install: `prebuild-install || node-gyp rebuild`
4894 error Exit status 1
4895 error Failed at the tree-sitter@0.13.23 install script.
4895 error This is probably not a problem with npm. There is likely additional logging output above.
4896 verbose exit [ 1, true ]
I've encountered a similar issue here: banacorn/language-agda#15 but it happened on a Windows machine and I use Arch Linux.
Any ideas? Thanks.
Metadata
Metadata
Assignees
Labels
No labels