Closed bsmith-optoro closed 2 years ago
I'm getting the same error. My installation method was also just npm install -g spectral-language-server
, not building manually.
To fix this I just manually run scripts/build.sh
and it works fine
That does not exist when it's installed via npm.
Sorry for misexplanation this is what I actually did :
spectral-language-server
installation folder (depends on your current way of managing global node modules)script/vscode-spectral-build.sh
, copy content from the repo and add execution permissionI had to modify this line on the script :
https://github.com/luizcorreia/spectral-language-server/blob/eaab841be81d52ef8a64423a37dfd9c4628e33d2/script/vscode-spectral-build.sh#L22
to yarn install --ignore-engines
because i didn't want to install node 12.13 just to compile it (i used node 14.15.5 to do it)
Hi @williamgoulois good to know that works for you. Can you make a PR fixing it? I tried some things, but the script just don't fire on installing by npm.
Hi @luizcorreia, I realized i didn't even need this package. I'm using nvim-lsp-installer and they already provide the installation steps that this project recreates.
This is how they handle the installation : https://github.com/williamboman/nvim-lsp-installer/blob/918ef1d4484d703e42424292399d19e36aab436f/lua/nvim-lsp-installer/servers/spectral/init.lua#L14-L31
I created a PR to fix the issues #4
I'm getting the following error when trying to run this:
The only explanation I've found so far is the
dist
directory being in the .gitignore file. According to the npm docs:Other sources say that
files
should override it, though.