Гэтсби - добавление модулей npm

Можно легко добавить модули NPM в Гэтсби.

Например:

gatsby new lumen https://github.com/wpioneer/gatsby-starter-lumen 
cd lumen 
npm install react-router-component-transition --save

├── UNMET PEER DEPENDENCY react@15.3.1 
├── UNMET PEER DEPENDENCY react-addons-css-transition-group@^0.14.0 
├── UNMET PEER DEPENDENCY react-router-component@>=0.27 
└─┬ react-router-component-transition@0.2.0   
  └─┬ object.assign@4.0.4
    ├─┬ define-properties@1.1.2
    │ ├── foreach@2.0.5
    │ └── object-keys@1.0.11
    └── object-keys@1.0.11

npm WARN react-router-component-transition@0.2.0 requires a peer of react-router-component@>=0.27 but none was installed. 
npm WARN react-router-component-transition@0.2.0 requires a peer of react@^0.14.0 but none was installed. 
npm WARN react-router-component-transition@0.2.0 requires a peer of react-addons-css-transition-group@^0.14.0 but none was installed. 
npm WARN gatsby-starter-lumen@1.1.0 No repository field.

Я попытался и получил некоторые ошибки зависимости от сверстников.

1 ответ

Также это всего лишь предупреждения, что пакеты Gatsby обычно не находятся на переднем крае, если это то, что вы запускаете для npm и узла.

Другие вопросы по тегам