Я сейчас пытаюсь сгенерировать prisma.graphql
файл из моего .graphqlconfig.yml
, но я не могу установить глобально npm i -g graphql-binding
или npm i -g prisma-binding
, так как я получаю следующие ошибки:
npm WARN graphql-binding@2.2.6 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-import@0.5.3 requires a peer of graphql@^0.11.0 || ^0.12.0 || ^0.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN graphql-tools@3.1.0 requires a peer of graphql@^0.13.0 but none is installed. You must installpeer dependencies yourself.
npm WARN apollo-link@1.2.3 requires a peer of graphql@^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 but noneis installed. You must install peer dependencies yourself.
Итак, я, очевидно, установил graphql в версии ^ 0.13 с:
npm i -g graphql@0.13
Это успешно выполняется, но привязки graphql продолжают не устанавливаться.Мне нужно выполнить команду:
graphql codegen
Но без установки привязок я не смогу ее запустить.
Любые предложения о том, как решить эту проблему, приветствуются:)
РЕДАКТИРОВАТЬ Используя NPX мне удалось запустить
npx graphql codegen