1
我在Ubuntu 16.04上安裝了react-native。現在,當我嘗試netwrok部分初始化一個項目,它stucks像下面用紗線運行react-native init
[email protected]:~/Dropbox/react-native-projects$ react-native init sadus
This will walk you through creating a new React Native project in /home/user/Dropbox/react-native-projects/sadus
Installing react-native...
Consider installing yarn to make this faster: https://yarnpkg.com
loadDep:yargs -> network/|##########---------------------------------------|
至於建議我試着用sudo npm install -g yarn
安裝紗,但它被安裝在usr/local/lib
所以當我運行react-native init ProjectName
它仍然要求我安裝的紗線。
所以,請幫我