2016-09-15 48 views
0

我想安裝反應包但控制檯日誌返回這個 同樣的問題,當我嘗試安裝kadira:react-layout。我該如何解決它?流星1.4.1.1如何安裝反應和kadira:react-layout?

I20160915-17:27:56.255(2)? [Error: Can't find npm module 'react-addons-transition-group/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.257(2)? [Error: Can't find npm module 'react-addons-css-transition-group/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.258(2)? [Error: Can't find npm module 'react-addons-linked-state-mixin/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.259(2)? [Error: Can't find npm module 'react-addons-create-fragment/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.260(2)? [Error: Can't find npm module 'react-addons-update/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.260(2)? [Error: Can't find npm module 'react-addons-pure-render-mixin/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.261(2)? [Error: Can't find npm module 'react-addons-test-utils/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] I20160915-17:27:56.262(2)? [Error: Can't find npm module 'react-addons-perf/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?] W20160915-17:27:56.263(2)? (STDERR) WARNING: npm peer requirements (for react-runtime) not installed: W20160915-17:27:56.264(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.264(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.264(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.265(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.265(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.266(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.266(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.266(2)? (STDERR) - [email protected] not installed. W20160915-17:27:56.266(2)? (STDERR) W20160915-17:27:56.267(2)? (STDERR) Read more about installing npm peer dependencies: W20160915-17:27:56.267(2)? (STDERR) http://guide.meteor.com/using-packages.html#peer-npm-dependencies W20160915-17:27:56.267(2)? (STDERR) W20160915-17:27:56.513(2)? (STDERR) /Users/ortiz/.meteor/packages/meteor-tool/.1.4.1_1.1h0re2h++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280 W20160915-17:27:56.514(2)? (STDERR) throw(ex); W20160915-17:27:56.514(2)? (STDERR) ^ W20160915-17:27:56.514(2)? (STDERR) W20160915-17:27:56.515(2)? (STDERR) Error: Can't find npm module 'react-addons-transition-group'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package? W20160915-17:27:56.515(2)? (STDERR) at Object.Npm.require (/Users/ortiz/Siti/tutorial/meteor/react/flowrouter/.meteor/local/build/programs/server/boot.js:198:17) W20160915-17:27:56.515(2)? (STDERR) at options.fallback (packages/modules-runtime/modules-runtime.js:21:1) W20160915-17:27:56.515(2)? (STDERR) at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:88:1) W20160915-17:27:56.516(2)? (STDERR) at meteorInstall.node_modules.meteor.react-runtime.react-runtime.js (packages/react-runtime/react-runtime.js:29:20) W20160915-17:27:56.517(2)? (STDERR) at fileEvaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) W20160915-17:27:56.517(2)? (STDERR) at require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1) W20160915-17:27:56.517(2)? (STDERR) at /Users/ortiz/Siti/tutorial/meteor/react/flowrouter/.meteor/local/build/programs/server/packages/react-runtime.js:79:15 W20160915-17:27:56.517(2)? (STDERR) at /Users/ortiz/Siti/tutorial/meteor/react/flowrouter/.meteor/local/build/programs/server/packages/react-runtime.js:92:3 W20160915-17:27:56.517(2)? (STDERR) at /Users/ortiz/Siti/tutorial/meteor/react/flowrouter/.meteor/local/build/programs/server/boot.js:292:10 W20160915-17:27:56.518(2)? (STDERR) at Array.forEach (native) => Exited with code: 1

回答

0

您需要安裝如下包從反應到解決問題。

  • 反應-插件創建片段
  • 反應-插件-CSS-過渡組
  • 反應-插件連接 - 狀態混入
  • 反應-插件-PERF
  • react-插件-純渲染混入
  • 反應-插件 - 測試 - utils的
  • 反應-插件 - 過渡組
  • 反應-插件更新
  • 反應-DOM

您可以運行下面的命令來解決這個問題。

meteor npm install --save react-addons-create-fragment react-addons-css-transition-group react-addons-linked-state-mixin react-addons-perf react-addons-pure-render-mixin react-addons-test-utils react-addons-transition-group react-addons-update react-dom 
+0

'react-addons-css transition-group'中缺少' - ',請對其進行編輯。 – Gurjit