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

yarn global add nyaovim not work #136

Open
gu-fan opened this issue Jan 21, 2018 · 2 comments
Open

yarn global add nyaovim not work #136

gu-fan opened this issue Jan 21, 2018 · 2 comments

Comments

@gu-fan
Copy link

gu-fan commented Jan 21, 2018

Use yarn global add nyaovim
Run with nyaovim

console error produces

$USER/AppData/Local/Yarn/config/global/node_modules/nyaovim/node_modules/neovim-component/neovim-editor.html
 Failed to load resource: net::ERR_FILE_NOT_FOUND

thus only npm install -g nyaovim can be used.

@amireldor
Copy link

Not sure if similar, but I had to npm i or yarn inside ./node_modules/nyaovim. This made things work. I've done the following steps both with npm and yarn:

mkdir nyaovim
cd nyaovim
yarn add nyaovim
npx nyaovim     <-- oops! not working
cd node_modules/nyaovim
yarn
cd ../..
npx nyaovim     --> yap, works!

I'm not familiar with npm packaging but maybe there's some flag missing doing this same thing?

@jimpsson
Copy link

I'm using Yarn also and had exactly the same type of problems launching Nyaovim. At first I thought it had to do with the fact that I was executing Nyaovim from Zsh and that it possibly did not reattach to user namespace like it is described in the FAQ, it seemed like a likely scenario.

Then after some debugging I was able to locate the problem, here is a short shell snippet to assert wether you have same problems as me:
ls "$(yarn global dir)/node_modules/nyaovim/node_modules" | wc -l
If the command results with 0 (lines), then Nyaovim was not installed fully, meaning its dependencies like electron and such is non existent within Nyaovim own node_modules directory.
Try resolve it by following command:
cd "$(yarn global dir)/node_modules/nyaovim" && yarn install

Hope it helps!

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

No branches or pull requests

3 participants