B
B
belyy_lis2022-03-01 10:19:29
bash
belyy_lis, 2022-03-01 10:19:29

Nest start. What is the error in /bin/sh line 0: unexpected EOF?

Hello!
I installed @nestjs/cli globally, ran the nest new command - the project was created.
But when I try to run it, I get the following error:

/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file


sudo nano /bin /sh - displays "a bunch of questions in an incomprehensible encoding"
Has anyone had such a problem? How did you decide? I understand that nest may not be the issue, but I haven't touched anything else, and other commands run without any problems.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sergey, 2022-03-01
kuzmin @sergueik

belyy_lis , fix the link

readlink $(which nest)
../../../Users//.config/yarn/global/node_modules/.bin/nest


file ../../../Users/userName/.config/yarn/global/node_modules/.bin/nest
../../../Users/userName/.config/yarn/global/node_modules/.bin/nest: cannot open `../../../Users/userName/.config/yarn/global/node_modules/.bin/nest' (No such file or directory)

fix the link
/usr/local/bin/nest
so that it shows what is and not what is not
with the help of a correctly written command
ln -fs "правильный путь" /usr/local/bin/nest
from the root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question