2017-09-02 155 views

回答

6

我在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. 

希望我t會幫助你。

+0

我有同樣的情況:sudo apt刪除cmdtest是關鍵! –

0

嘗試刪除現有紗線(這是nix系統的*傳統的黑盒子命令行工具的模塊。

 

    sudo apt remove cmdtest 
    sudo apt remove yarn 

通過NPM

 
npm install -g yarn 

現在紗安裝安裝簡單。運行你的命令。

 
yarn install sylius 

我希望這會起作用。乾杯!

1

爲Ubuntu 16.04安裝紗(不知道這是否會是一樣的14.04,因爲它是略有不同zappee的回答爲17.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 
相關問題