-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
NPM Install Fail #57
Comments
It appears that the version you are using is out of date. Could you try to install the latest version of the package (Possible Fix 1 Below)? If that doesn't work, you could try the second fix, and we could continue debugging from there. Possible Fix 1yarn global add fish-lsp@1.0.8-1 If that doesn't work, please try the recommended installation method on the README. git clone https://github.com/ndonfris/fish-lsp.git
cd fish-lsp
yarn install
# make sure the installation was successful
./bin/fish-lsp --version
# make sure fish-lsp got added to your path
fish-lsp --version
# if the installation was successful, but `fish-lsp` command is not found on
# your machine, try messing around with `yarn link --global fish-lsp` or
# `yarn global add fish-lsp` Possible Fix 2Try installing the exact node version that the package was built and tested with. Do you have The command to install the exact version of node is: # https://github.com/jorgebucaran/nvm.fish
# fisher install jorgebucaran/nvm.fish
nvm install v21.7.1 && nvm use v21.7.1
The upcoming version v1.0.9 of fish-lsp should hopefully fix the Unfortunately, cleaning up the codebase isn't as easy as I thought it would be, so it's taking a little longer than I anticipated. Sorry for the inconvenience. Hopefully, it will be finished in the next week or two. 🤞 Anyways, I hope this helps! If you have any other questions, feel free to ask! |
Next thing to try is navigating to the directory mentioned in your error message cd /Users/andre/.nvm/versions/node/v20.17.0/lib/node_modules/fish-lsp/ Then try running the following commands: yarn install --ignore-scripts # install the dependencies
yarn install # run the installation scripts
yarn tsc -b # make sure the project compiles
./bin/fish-lsp --help # should be working now |
I'm having difficulties reproducing this bug. I'm not sure what you mean by the file is not being created. Does the directory (that your initial screenshot showed) not have any files in it? It should contain the source code for the project, and manually running the Installing from source appears to be working perfectly fine. As stated in the README, please clone the repo and manually build the project. |
Okay, thanks! I still can't reproduce, unfortunately, but I've seen a similar issue occur locally before (which is actually why the previous release had the I believe the install script is failing in the screenshot shown because the
yarn global list | string match -e 'fish-lsp'
# npm ls -g
# this might also be helpful:
# ls -la $(which fish-lsp) If you find the
yarn install --ignore-scripts && yarn run-s setup compile sh:relink
./bin/fish-lsp complete > $fish_complete_path[1]/fish-lsp.fish
The command above is essentially running every install-script besides the one that caused the error: Hope this helps!! |
Describe the bug
cant install through npm
To Reproduce
npm install -g fish-lsp
install fish-lsp globally
Screenshots
Please complete the following information:
Steps tried to fix.
The text was updated successfully, but these errors were encountered: