program tip

Yarn 설치 명령 오류 해당 파일 또는 디렉토리 없음 : 'install'

radiobox 2020. 9. 2. 15:31
반응형

Yarn 설치 명령 오류 해당 파일 또는 디렉토리 없음 : 'install'


나는 sylius 번들을 설치 중이고 sylius를 설치하는 동안 yarn install을 실행해야하므로 명령을 실행하는 동안

yarn install

오류가 발생합니다.

오류 : [Errno 2] 해당 파일 또는 디렉토리 없음 : 'install'


Ubuntu 17.04에서 동일한 문제가 발생했습니다.

이 솔루션은 저에게 효과적이었습니다.

~$ sudo apt remove cmdtest
~$ sudo apt remove yarn
~$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
~$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
~$ sudo apt-get update  
~$ sudo apt-get install yarn

그때

~$ yarn install

결과:

yarn install v1.3.2
warning You are using Node "6.0.0" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

info Lockfile not saved, no dependencies.
Done in 0.20s.

그것이 당신을 도울 수 있기를 바랍니다.


Ubuntu 18.04에서 동일한 문제가 발생했습니다. 이것은 나를 위해 일한 것입니다.

나는 제거 cmdtest하고yarn

sudo apt remove cmdtest

sudo apt remove yarn

npm을 사용하여 전 세계적으로 원사 설치

sudo npm install -g yarn

참고 : 이 솔루션은 Ubuntu 16.04, Ubuntu 17.04및에서 잘 작동합니다 Ubuntu 18.04.

기존의 cmdtestyarn (* nix 시스템의 레거시 블랙 박스 명령 줄 도구 모듈) 을 제거하십시오 .

sudo apt는 cmdtest를 제거합니다.
sudo apt remove yarn

npm을 통해 간단하게 설치

npm install -g yarn

또는

sudo npm install -g yarn

이제 원사가 설치되었습니다. 명령을 실행하십시오.

실 설치 sylius

이것이 효과가 있기를 바랍니다. 건배!

편집하다:

re-open the terminal변경 사항을 적용 하려면 기억하십시오 .


이것은 나를 위해 일했다

sudo yarn install

Ubuntu 16.04 용 Yarn 설치 (17.04에 대한 zappee의 답변과 약간 다르기 때문에 14.04와 동일한 지 확실하지 않음)

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
apt-get update
apt-get install nodejs
apt-get install yarn

그런 다음 sylius 프로젝트 (/ var / www / mysite)를 설치 한 위치에서

yarn install
yarn run gulp

sudo npm install -g yarnpkg
npm WARN deprecated yarnpkg@0.15.1: Please use the `yarn` package instead of `yarnpkg`

그래서 이것은 나를 위해 작동합니다

sudo npm install -g yarn

또한이 문제 (Windows)가 있었지만 수정은 모든 터미널 인스턴스를 완전히 닫은 다음 다시 시도하는 것입니다.

참고 URL : https://stackoverflow.com/questions/46013544/yarn-install-command-error-no-such-file-or-directory-install

반응형