Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vtsls fails to install (0.2.7 is not a valid version) #1847

Open
2 tasks done
Tylerc230 opened this issue Dec 31, 2024 · 0 comments
Open
2 tasks done

vtsls fails to install (0.2.7 is not a valid version) #1847

Tylerc230 opened this issue Dec 31, 2024 · 0 comments

Comments

@Tylerc230
Copy link

I've searched open issues for similar requests

  • Yes

I've recently downloaded the latest plugin version of mason.nvim

  • Yes

Problem description

I'm not able to install vtsls using MasonInstall vtsls. It is trying to install 0.2.7 which doesn't exist. On the command line, npm install -g @vtsls/[email protected] also fails but npm install -g @vtsls/language-server succeeds.

Expected behavior

vtsls should install successfully. Instead I get: ```
(node:98904) ExperimentalWarning: CommonJS module /opt/homebrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /opt/homebrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)
Wrote to /Users/cstyle/.local/share/lazyvim/mason/staging/vtsls/package.json:

    {
      "name": "@mason/vtsls",
      "version": "1.0.0",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1"
      },
      "keywords": [],
      "author": "",
      "license": "ISC",
      "description": ""
    }



    Initialized npm root.
    Installing npm package @vtsls/[email protected]…
    (node:98908) ExperimentalWarning: CommonJS module /opt/homebrew/lib/node_modules/npm/node_modules/debug/src/node.js is loading ES Module /opt/homebrew/lib/node_modules/npm/node_modules/supports-color/index.js using require().
    Support for loading ES Module in require() is an experimental feature and might change at any time
    (Use `node --trace-warnings ...` to show where the warning was created)
    npm error code ETARGET
    npm error notarget No matching version found for @vtsls/[email protected].
    npm error notarget In most cases you or one of your dependencies are requesting
    npm error notarget a package version that doesn't exist.
    npm error A complete log of this run can be found in: /Users/cstyle/.npm/_logs/2024-12-31T17_46_37_292Z-debug-0.log
    spawn: npm failed with exit code 1 and signal 0. 

### Affected packages

vtsls

### Mason output

_No response_

### Installation log

```Text
[ERROR Tue Dec 31 09:43:14 2024] ...azyvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=vtsls) error=spawn: npm failed with exit code 1 and signal 0. 
[INFO  Tue Dec 31 09:46:10 2024] ...azyvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=vtsls) {}
[ERROR Tue Dec 31 09:46:11 2024] ...azyvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=vtsls) error=spawn: npm failed with exit code 1 and signal 0. 
[INFO  Tue Dec 31 09:46:36 2024] ...azyvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=vtsls) {}
[ERROR Tue Dec 31 09:46:37 2024] ...azyvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=vtsls) error=spawn: npm failed with exit code 1 and signal 0. 


### Neovim version (>= 0.7)

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1731601260
Run "nvim -V1 -v" for more info


### Operating system/version

Darwin bcd07465c181 23.6.0 Darwin Kernel Version 23.6.0: Fri Nov 15 15:13:15 PST 2024; root:xnu-10063.141.1.702.7~1/RELEASE_ARM64_T6000 arm64

### Healthcheck

```Text
mason: require("mason.health").check()

mason.nvim ~
- OK mason.nvim version v1.10.0
- OK PATH: prepend
- OK Providers: 
    mason.providers.registry-api
    mason.providers.client
- OK neovim version >= 0.7.0

mason.nvim [Registries] ~
- OK Registry `github.com/mason-org/mason-registry version: 2024-12-31-fellow-flour` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- WARNING wget: not available
  - ADVICE:
    - spawn: wget failed with exit code - and signal -. wget is not executable
- OK curl: `curl 8.11.0 (aarch64-apple-darwin23.6.0) libcurl/8.11.0 OpenSSL/3.4.0 (SecureTransport) zlib/1.2.12 brotli/1.1.0 zstd/1.5.6 AppleIDN libssh2/1.11.1 nghttp2/1.64.0 librtmp/2.3`
- OK gzip: `Apple gzip 430.140.2`
- OK tar: `bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8 `
- OK bash: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)`
- OK sh: `Ok`

mason.nvim [Languages] ~
- WARNING Go: not available
  - ADVICE:
    - spawn: go failed with exit code - and signal -. go is not executable
- WARNING Composer: not available
  - ADVICE:
    - spawn: composer failed with exit code - and signal -. composer is not executable
- WARNING PHP: not available
  - ADVICE:
    - spawn: php failed with exit code - and signal -. php is not executable
- WARNING luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks is not executable
- OK node: `v23.3.0`
- OK cargo: `cargo 1.77.2 (e52e36006 2024-03-26)`
- OK npm: `10.9.0`
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK java: `openjdk version "17.0.13" 2024-10-15 LTS`
- OK python: `Python 3.13.0`
- OK Ruby: `ruby 2.7.8p225 (2023-03-30 revision 1f4d455848) [arm64-darwin23]`
- OK JAVA_HOME: `openjdk version "17.0.13" 2024-10-15 LTS`
- OK javac: `javac 17.0.13`
- OK RubyGem: `3.1.6`
- OK pip: `pip 24.2 from /opt/homebrew/lib/python3.13/site-packages/pip (python 3.13)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 1. Remaining: 59. Limit: 60. Reset: Tue Dec 31 10:38:58 2024.
  Install and authenticate via gh-cli to increase rate limit.




### Screenshots

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant