Skip to content

Multiple Packages Installation Fail #1866

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

Closed
3 tasks done
oldqin97 opened this issue Feb 2, 2025 · 4 comments
Closed
3 tasks done

Multiple Packages Installation Fail #1866

oldqin97 opened this issue Feb 2, 2025 · 4 comments

Comments

@oldqin97
Copy link

oldqin97 commented Feb 2, 2025

I've searched open issues for similar requests

  • Yes

I've manually reviewed logs to find potential errors

  • Yes

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

  • Yes

Problem description

Image
I got an error when downloading these LSP (Language Server Protocol) language packages.

Expected behavior

These languages ​​can be downloaded normally

Steps to reproduce

  1. Mason
  2. install prisma-language-server / tailwindcss-language-server / cspell
  3. error spawn: npm failed with exit code 1 and signal 0.

Affected packages

all

Neovim version (>= 0.7)

NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1736781742

Operating system/version

Darwin oq 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64

Healthcheck

==============================================================================
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: 2025-02-02-acid-bail` is installed.

mason.nvim [Core utils] ~
- OK unzip: `UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send`
- OK wget: `GNU Wget 1.25.0 built on darwin23.6.0.`
- OK curl: `curl 8.9.1 (arm64-apple-darwin20.0.0) libcurl/8.9.1 OpenSSL/3.0.15 zlib/1.2.13 libssh2/1.11.0 nghttp2/1.57.0`
- 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 luarocks: not available
  - ADVICE:
    - spawn: luarocks failed with exit code - and signal -. luarocks 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
- OK Ruby: `ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]`
- WARNING javac: not available
  - ADVICE:
    - spawn: javac failed with exit code 1 and signal 0. The operation couldn’t be completed. Unable to locate a Java Runtime.
      Please visit http://www.java.com for information on installing Java.
      
      
- WARNING java: not available
  - ADVICE:
    - spawn: java failed with exit code 1 and signal 0. The operation couldn’t be completed. Unable to locate a Java Runtime.
      Please visit http://www.java.com for information on installing Java.
      
      
- WARNING julia: not available
  - ADVICE:
    - spawn: julia failed with exit code - and signal -. julia is not executable
- OK node: `v22.13.1`
- OK python: `Python 3.12.7`
- OK cargo: `cargo 1.82.0 (8f40fc59f 2024-08-21)`
- OK RubyGem: `3.0.3.1`
- OK npm: `10.9.2`
- OK pip: `pip 24.2 from /opt/homebrew/anaconda3/lib/python3.12/site-packages/pip (python 3.12)`
- OK python venv: `Ok`

mason.nvim [GitHub] ~
- OK GitHub API rate limit. Used: 1. Remaining: 59. Limit: 60. Reset: Mon Feb  3 04:28:50 2025.
  Install and authenticate via gh-cli to increase rate limit.

Screenshots or recordings

No response

@oldqin97
Copy link
Author

oldqin97 commented Feb 2, 2025

[ERROR Mon Feb 3 03:29:04 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=tailwindcss-language-server) error=spawn: npm failed with exit code 1 and signal 0.
[ERROR Mon Feb 3 03:29:04 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=prisma-language-server) error=spawn: npm failed with exit code 1 and signal 0.
[INFO Mon Feb 3 03:29:08 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=tailwindcss-language-server) {}
[ERROR Mon Feb 3 03:29:08 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=tailwindcss-language-server) error=spawn: npm failed with exit code 1 and signal 0.
[INFO Mon Feb 3 03:29:29 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=prisma-language-server) {}
[ERROR Mon Feb 3 03:29:30 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=prisma-language-server) error=spawn: npm failed with exit code 1 and signal 0.
[INFO Mon Feb 3 03:29:33 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:184: Executing installer for Package(name=cspell) {}
[ERROR Mon Feb 3 03:29:36 2025] ...e/nvim/lazy/mason.nvim/lua/mason-core/installer/init.lua:249: Installation failed for Package(name=cspell) error=spawn: npm failed with exit code 1 and signal 0.

@chaozwn
Copy link

chaozwn commented Feb 5, 2025

same issue.

@PoundKake
Copy link

Same issue here.

@PoundKake
Copy link

I was able to fix this issue with this solution https://stackoverflow.com/questions/36494336/npm-install-error-unable-to-get-local-issuer-certificate

I should have also noted that this issue is on a corporate machine on a corporate network so, at least for me, this issues was an npm thing and not a Mason issue. After setting npm config settings, Mason was able to install the packages just fine. I am also using nvm to manage node. See versions below.

nvm --version
0.39.7
node --version
v20.11.0
npm --version
10.2.4

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

3 participants