bitrix-tools / cli

Консольный инструмент Битрикс-разработчика
57 stars 25 forks source link

chalk@4.1.0 error when yarn global all #24

Closed gromdron closed 3 years ago

gromdron commented 3 years ago

When i run yarn global add @bitrix/cli i've got an error:

[bitrix@default ~]$ yarn global add @bitrix/cli
yarn global v1.22.5
[1/4] Resolving packages...
warning @bitrix/cli > rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
warning @bitrix/cli > rollup-plugin-commonjs@9.3.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
warning @bitrix/cli > rollup-plugin-json@3.1.0: This module has been deprecated and is no longer maintained. Please use @rollup/plugin-json.
warning @bitrix/cli > rollup-plugin-node-resolve@4.2.4: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
warning @bitrix/cli > mocha > mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
warning @bitrix/cli > jsdom > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning @bitrix/cli > jsdom > request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
warning @bitrix/cli > jsdom > request > har-validator@5.1.5: this library is no longer supported
warning @bitrix/cli > fast-glob > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning @bitrix/cli > fast-glob > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2/4] Fetching packages...
error chalk@4.1.0: The engine "node" is incompatible with this module. Expected version ">=10". Got "8.17.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Okey, i need node >= 10, but in documentation i've found:

Node: 9.11.2 NPM: 5.6.0.

xukku commented 3 years ago

ну написано

The engine "node" is incompatible with this module. Expected version ">=10". Got "8.17.0"

на их рекомендуемую версию я смог поставить только в докере / на чистую систему (если были установлены другие версии node и модули глобально - то могут возникать непредвиденные последствия) и только добавив ключ --unsafe-perm

npm install --unsafe-perm -g @bitrix/cli

https://github.com/whateveruse/6umpukc/blob/master/.template/bitrixcli/Dockerfile