Skip to content

Linux: Can't find bash-language-server on your PATH.  #96

Closed
@lamyergeier

Description

@lamyergeier

OS: Ubuntu 18.04

I have installed the language server as follows

npm install -g bash-language-server --verbose

npm info it worked if it ends with ok
npm verb cli [ '/home/nikhil/.nvm/versions/node/v10.15.0/bin/node',
npm verb cli   '/home/nikhil/.nvm/versions/node/v10.15.0/bin/npm',
npm verb cli   'install',
npm verb cli   '-g',
npm verb cli   'bash-language-server',
npm verb cli   '--verbose' ]
npm info using npm@6.5.0
npm info using node@v10.15.0
npm verb npm-session a35f15e597cc1aef
npm http fetch GET 304 https://registry.npmjs.org/bash-language-server 132ms (from cache)
npm timing stage:loadCurrentTree Completed in 565ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 50ms
npm http fetch GET 304 https://registry.npmjs.org/glob 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tree-sitter-bash 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tree-sitter 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/urijs 78ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/request 92ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/request-promise-native 94ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-languageserver 95ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/turndown 5079ms
npm http fetch GET 304 https://registry.npmjs.org/fs.realpath 37ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/inflight 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/once 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimatch 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/inherits 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/path-is-absolute 50ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wrappy 26ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/brace-expansion 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/balanced-match 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/concat-map 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/aws4 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/caseless 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/combined-stream 45ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/extend 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/form-data 60ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/http-signature 83ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/har-validator 93ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/is-typedarray 96ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/forever-agent 102ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/aws-sign2 105ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/isstream 64ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/oauth-sign 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mime-types 64ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json-stringify-safe 66ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/performance-now 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/qs 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/safe-buffer 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tough-cookie 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tunnel-agent 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/uuid 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/delayed-stream 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/asynckit 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mime-db 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/har-schema 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ajv 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/uri-js 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fast-deep-equal 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fast-json-stable-stringify 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json-schema-traverse 34ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/punycode 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsprim 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/assert-plus 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/sshpk 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/extsprintf 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/verror 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/json-schema 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/core-util-is 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsbn 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/dashdash 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/getpass 41ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ecc-jsbn 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/safer-buffer 44ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/asn1 48ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bcrypt-pbkdf 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tweetnacl 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/psl 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/request-promise-core 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/stealthy-require 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash 24ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prebuild-install 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/nan 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/expand-template 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/noop-logger 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/github-from-package 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/detect-libc 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/node-abi 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mkdirp 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/napi-build-utils 58ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/pump 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/rc 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/which-pm-runs 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-fs 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/minimist 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/npmlog 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/os-homedir 113ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-get 65ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/semver 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/are-we-there-yet 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/console-control-strings 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/set-blocking 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/gauge 129ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/readable-stream 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/delegates 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/isarray 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/process-nextick-args 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/util-deprecate 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string_decoder 39ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/signal-exit 23ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/aproba 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/has-unicode 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/object-assign 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/string-width 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/strip-ansi 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wide-align 41ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/code-point-at 24ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/is-fullwidth-code-point 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/number-is-nan 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ansi-regex 22ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/end-of-stream 22ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/strip-json-comments 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ini 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/deep-extend 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/decompress-response 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/simple-concat 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/mimic-response 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/chownr 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tar-stream 29ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/xtend 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/to-buffer 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/buffer-alloc 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bl 37ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fs-constants 40ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/buffer-fill 24ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/buffer-alloc-unsafe 25ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/jsdom 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/array-equal 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/data-urls 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/cssom 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/abab 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/html-encoding-sniffer 53ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/acorn-globals 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/domexception 54ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/cssstyle 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/acorn 62ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/escodegen 65ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/nwsapi 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/left-pad 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/w3c-hr-time 47ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/pn 49ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/parse5 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/symbol-tree 51ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/webidl-conversions 52ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/whatwg-encoding 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/sax 55ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/whatwg-mimetype 46ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/whatwg-url 38ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/xml-name-validator 31ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/ws 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/acorn-walk 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/tr46 28ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/lodash.sortby 93ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/source-map 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/optionator 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/esutils 36ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/esprima 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/estraverse 43ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/deep-is 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/wordwrap 32ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/levn 33ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/fast-levenshtein 35ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/prelude-ls 69ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/type-check 72ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/iconv-lite 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/browser-process-hrtime 88ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/async-limiter 27ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-uri 26ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-languageserver-protocol 42ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-languageserver-types 26ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/vscode-jsonrpc 34ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 7384ms
npm timing stage:loadIdealTree Completed in 7472ms
npm timing stage:generateActionsToTake Completed in 20ms
npm verb correctMkdir /home/nikhil/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /home/nikhil/.npm/_locks/staging-2f270054bd003e5a.lock for /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules/.staging
npm timing action:extract Completed in 28ms
npm info lifecycle bash-language-server@1.5.5~preuninstall: bash-language-server@1.5.5
npm info lifecycle bash-language-server@1.5.5~uninstall: bash-language-server@1.5.5
npm verb unbuild rmStuff bash-language-server@1.5.5 from /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules
npm info lifecycle bash-language-server@1.5.5~postuninstall: bash-language-server@1.5.5
npm timing action:unbuild Completed in 4ms
npm timing action:remove Completed in 37ms
npm timing action:finalize Completed in 11ms
npm timing action:refresh-package-json Completed in 4ms
npm info lifecycle bash-language-server@1.5.5~preinstall: bash-language-server@1.5.5
npm timing action:preinstall Completed in 5ms
npm info linkStuff bash-language-server@1.5.5
npm verb linkBins [ { 'bash-language-server': './bin/main.js' },
npm verb linkBins   '/home/nikhil/.nvm/versions/node/v10.15.0/bin',
npm verb linkBins   true ]
/home/nikhil/.nvm/versions/node/v10.15.0/bin/bash-language-server -> /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules/bash-language-server/bin/main.js
npm timing action:build Completed in 3ms
npm info lifecycle bash-language-server@1.5.5~install: bash-language-server@1.5.5
npm timing action:install Completed in 0ms
npm info lifecycle bash-language-server@1.5.5~postinstall: bash-language-server@1.5.5
npm timing action:postinstall Completed in 0ms
npm verb unlock done using /home/nikhil/.npm/_locks/staging-2f270054bd003e5a.lock for /home/nikhil/.nvm/versions/node/v10.15.0/lib/node_modules/.staging
npm timing stage:executeActions Completed in 104ms
npm timing stage:rollbackFailedOptional Completed in 0ms
npm timing stage:runTopLevelLifecycles Completed in 8165ms
+ bash-language-server@1.5.5
updated 1 package in 8.167s
npm verb exit [ 0, true ]
npm timing npm Completed in 8467ms
npm info ok

Path:

$ type bash-language-server
bash-language-server is /home/nikhil/.nvm/versions/node/v10.15.0/bin/bash-language-server

VS Code settings.json

  "bashIde.path": "/home/nikhil/.nvm/versions/node/v10.15.0/bin/bash-language-server",

But I keep getting this error:

Can't find bash-language-server on your PATH. Please install it using "npm i -g bash-language-server".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions