ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.19k stars 109 forks source link

MasonLog: Installation failed for Package(name=html-lsp) error=spawn: npm failed with exit code 1 and signal 0. #157

Closed zerrol closed 11 months ago

zerrol commented 11 months ago

I install the config of nvim succussful, but Mason install package failed.

I already installed node and npm.

node version: v20.4.0 (installed by homebrew)
npm version: 9.7.2
nvim version: 0.9.1

Please help ~~

image
zerrol commented 11 months ago

Error stack

image
ecosse3 commented 11 months ago

EACCES: permission denied

This is somehow related to your installation of npm/node. Install it without sudo. Looks like it's not related to Ecovim. Maybe clear cache.

zerrol commented 11 months ago

The problem was resolved. Thanks

https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally