Через npm ставится без проблем, а вот yarn падает с ошибкой в тот момент, когда запрашивается пользовательский ввод.
nook@nook-pc:~$ yarn global add @bitrix/cli
yarn global v1.16.0
error /home/nook/.config/yarn/global/node_modules/@bitrix/cli: Command failed.
Exit code: 130
Command: node ./bin/bitrix settings --intro
Arguments:
Directory: /home/nook/.config/yarn/global/node_modules/@bitrix/cli
Output:
╭──────────────────────────────╮
│ │
│ ✔ @bitrix/cli installed │
│ Answer a few questions │
│ │
Полный вывод и скриншот
```console
nook@nook-pc:~$ yarn global add @bitrix/cli
yarn global v1.16.0
[1/4] Resolving packages...
warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > postcss-merge-rules > postcss-selector-parser > flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
[2/4] Fetching packages...
info fsevents@1.2.7: The platform "linux" is incompatible with this module.
info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[-/5] ⠁ waiting...
[-/5] ⠁ waiting...
[5/5] ⠁ @bitrix/cli
[-/5] ⠁ waiting...
error /home/nook/.config/yarn/global/node_modules/@bitrix/cli: Command failed.
Exit code: 130
Command: node ./bin/bitrix settings --intro
Arguments:
Directory: /home/nook/.config/yarn/global/node_modules/@bitrix/cli
Output:
╭──────────────────────────────╮
│ │
│ ✔ @bitrix/cli installed │
│ Answer a few questions │
│ │
nook@nook-pc:~$
```
![image](https://user-images.githubusercontent.com/444489/59881647-c632e300-93b8-11e9-9046-2e780c4f62f8.png)
Через
npm
ставится без проблем, а вотyarn
падает с ошибкой в тот момент, когда запрашивается пользовательский ввод.Полный вывод и скриншот
```console nook@nook-pc:~$ yarn global add @bitrix/cli yarn global v1.16.0 [1/4] Resolving packages... warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools. warning @bitrix/cli > rollup-plugin-postcss-independed > cssnano > postcss-merge-rules > postcss-selector-parser > flatten@1.0.2: I wrote this module a very long time ago; you should use something else. [2/4] Fetching packages... info fsevents@1.2.7: The platform "linux" is incompatible with this module. info "fsevents@1.2.7" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... [4/4] Building fresh packages... [-/5] ⠁ waiting... [-/5] ⠁ waiting... [5/5] ⠁ @bitrix/cli [-/5] ⠁ waiting... error /home/nook/.config/yarn/global/node_modules/@bitrix/cli: Command failed. Exit code: 130 Command: node ./bin/bitrix settings --intro Arguments: Directory: /home/nook/.config/yarn/global/node_modules/@bitrix/cli Output: ╭──────────────────────────────╮ │ │ │ ✔ @bitrix/cli installed │ │ Answer a few questions │ │ │ nook@nook-pc:~$ ``` ![image](https://user-images.githubusercontent.com/444489/59881647-c632e300-93b8-11e9-9046-2e780c4f62f8.png)