正常的步骤
https://github.com/OHIF/Viewers.git
git clone
https://github.com/OHIF/Viewers.git- cd Viewers
- Add this repo as a
remote
namedupstream
git remote add upstream https://github.com/OHIF/Viewers.git
yarn install
to restore dependencies and link projects
错误1 :
ERROR: [Errno 2] No such file or directory: 'install'
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 -y
yarn install
ubuntu - Yarn install command error No such file or directory: 'install' - Stack Overflow
错误2:
The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.10.0"
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ node -v
v10.16.3
然后运行:
yarn install 应该就可以了