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 : 依赖: nodejs (>= 4.0.0) 但是它将不会被安装 #1042

Closed
smalike opened this issue Oct 14, 2016 · 5 comments
Closed

yarn : 依赖: nodejs (>= 4.0.0) 但是它将不会被安装 #1042

smalike opened this issue Oct 14, 2016 · 5 comments
Labels

Comments

@smalike
Copy link

smalike commented Oct 14, 2016

源码安装 nodejs 6.0.0,执行 sudo apt-get install yarn 得到提示:

  • 下列软件包有未满足的依赖关系:
  • yarn : 依赖: nodejs (>= 4.0.0) 但是它将不会被安装
  • E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。

GOOGLE TRANSLATION BELOW - edit by @thejameskyle

Source installed nodejs 6.0.0, the implementation of sudo apt-get install yarn was suggested:

The following packages have unmet dependencies:

Yarn: Dependency: nodejs (> = 4.0.0) But it will not be installed

E: The error can not be fixed because you are asking some packages to stay in the status quo, that is, they break dependencies between packages.

@shuding
Copy link

shuding commented Oct 14, 2016

可以等待更新,之后使用 yarn install --ignore-engines 即可。
via #972

Duplicate of #638, solved in #647, not yet shipped.

@Daniel15
Copy link
Member

Hi @smalike! I don't know Chinese, but it looks like you're asking about the nodejs dependency of the Ubuntu/Debian package. That'll be changed to a "Recommended" package in #916. Do you have Node.js installed via something like NVM? If you're using a package for Node.js, adding the NodeSource repository (https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions) should give you a newer Node.js version, then you can sudo apt-get install yarn.

@Shyam-Chen
Copy link

@smalike 我在 Ubuntu 上可以安裝

default

@Shyam-Chen
Copy link

error in Dockerfile

apt-get install yarn
FROM buildpack-deps:jessie
[...]
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
    apt-get update && \
    apt-get install -y \
    nodejs yarn xvfb chromium libgconf-2-4 openjdk-7-jre-headless && \
    rm -rf /var/lib/apt/lists/*
[...]

@bestander
Copy link
Member

Should be fixed I reckon

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

No branches or pull requests

6 participants