可以轻松地将NPM模块添加到Gatsby。
例如:
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.
我尝试了一些对等依赖项错误。
答案 0 :(得分:0)
这只是警告,如果那是您为npm和node运行的内容,那么Gatsby软件包通常不会处于最前沿。