我一直在寻找如何解决这个问题,无法弄清楚。运行 React - Meteor 应用程序、meteorhacks:npm 和 browserify。
错误:
While building package npm-container:
error: couldn't run `npm shrinkwrap`: Command failed: npm ERR! Error: Problems were encountered
npm ERR! Please correct and try again.
npm ERR! missing: react@^0.14.7, required by react-addons-transition-group@0.14.7
npm ERR! missing: react@^0.14.7, required by react-addons-update@0.14.7
npm ERR! missing: react@^0.14.7, required by react-addons-create-fragment@0.14.7
npm ERR! missing: react@^0.14.7, required by react-addons-pure-render-mixin@0.14.7
npm ERR! at shrinkwrap_
包.json
{
"externalify" : "0.1.0",
"react-tap-event-plugin": "0.2.2",
"react-mixin" : "3.0.3",
"material-ui" : "0.13.4",
"formsy-react" : "0.17.0",
"formsy-material-ui" : "0.3.3"
}
奇怪的是我有这个工作,然后一旦我尝试从 material-ui 0.13.4 更新到 0.14.4,整个包停止工作。然后我恢复到 0.13.4,同样的错误仍然存在。我试过删除 meteorhacks:npm 和 npm-container 文件夹,以及清除 npm 缓存。
如果我将 material-ui 降级到 0.13.1,错误就会消失,但我仍在尝试修复,因为我需要升级到 0.14。