After that, I reopened a Bash script and all was fine. So, I resorted to a full apt dist-upgrade, which worked fine. The following packages have unmet dependencies. The following information may help to resolve the situation: Requested an impossible situation or if you are using the unstableĭistribution that some required packages have not yet been created Even an explicit upgrade of the nodejs package didn’t work: To install the latest release, use n latest. Run the code below to clear npm’s cache, install n, and update to the latest stable version of Node.js: sudo npm cache clean -f. The nodejs upgrade was held back because of a dependency problem. To update Node.js, you’ll need npm’s handy n module. The script that this command fetches (and executes as root) is quite elaborate, but in the end it simply creates the file /etc/apt//nodesource.list, with the following contents:ĭeb impish mainĭeb-src impish mainĪfter that, a simple apt upgrade didn’t suffice. Current - Should incorporate most of the non-major (non-breaking) changes that land on. Odd-numbered release lines are not promoted to LTS - they will not go through the 'Active LTS' or 'Maintenance' phases. This package is the LTS (Long Term Support) release of Node.js. Node.js' package ecosystem, npm, is the largest ecosystem of open source libraries in the world. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Here I found instructions on how to install a given version of nodejs on Ubuntu. There are three phases that a Node.js release can be in: 'Current', 'Active Long Term Support (LTS)', and 'Maintenance'. Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. The current LTS version of nodejs is v16. It turns out that v12 is no longer maintained. Time to figure out how to install a newer nodejs version on my Ubuntu 21.10 machine. I re-ran lsp-install-server, which pointed out that I had nodejs v12.22.5 installed and the language server required v14 or higher. (/home/lennart/.emacs.d/.cache/lsp/npm/bash-language-server/lib/node_modules/bash-language-server/node_modules/vscode-jsonrpc/lib/common/api.js:37:21)Īt Module._compile (internal/modules/cjs/loader.js:999:30) home/lennart/.emacs.d/.cache/lsp/npm/bash-language-server/lib/node_modules/bash-language-server/node_modules/vscode-jsonrpc/lib/common/linkedMap.js:40Īt wrapSafe (internal/modules/cjs/loader.js:915:16)Īt Module._compile (internal/modules/cjs/loader.js:963:27)Īt Object.Module._extensions.js (internal/modules/cjs/loader.js:1027:10)Īt Module.load (internal/modules/cjs/loader.js:863:32)Īt Function.Module._load (internal/modules/cjs/loader.js:708:14)Īt Module.require (internal/modules/cjs/loader.js:887:19)Īt require (internal/modules/cjs/helpers.js:74:18)Īt Object. In Emacs, the errors of the Bash language server can be found in the *bash-ls::stderr* buffer, which showed me: bash file, the language server didn’t load and told me to look in the error output for more information. Today I upgraded the Bash language server (to v3.0.3), after which I noticed that it stopped working.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |