【问题标题】:Meteor.js : meteor is using angular 1.3 version instead of 1.5Meteor.js:meteor 使用 angular 1.3 版本而不是 1.5
【发布时间】:2016-07-16 19:48:55
【问题描述】:

我正在使用流星 1.3,尽管我安装了 1.5.7 版本,但应用程序强制使用 angular 1.3。请帮我解决这里的问题。

我已经安装了依赖列表:

 "dependencies": {
"angular": "^1.5.7",
"angular-meteor": "^1.3.11",
"angular-ui-router": "^0.3.1",
"interact.js": "^1.2.6",
"jquery": "^2.2.4",
"massive": "^2.3.0",
"meteor-node-stubs": "~0.2.0",
"moment": "^2.13.0",
"q": "^1.4.1"
}

和meteor包如下:

accounts-google                     1.0.10  Login service for Google    accounts
autopublish                         1.0.7  (For prototyping only) Publish     the entire database to all cli...
check                               1.2.2* Check whether a value matches a pattern
email                               1.0.13* Send email messages
es5-shim                            4.5.11* Shims and polyfills to improve ECMAScript 5 support
http                                1.1.6* Make HTTP calls to remote servers
insecure                            1.0.7  (For prototyping only) Allow all database writes from the client
jquery                              1.11.9  Manipulate the DOM using CSS selectors
meteor-base                         1.0.4  Packages that every Meteor app needs
mizzao:bootboxjs                    4.4.0  Programmatic dialog boxes using Twitter's bootstrap modals
mobile-experience                   1.0.4  Packages for a great mobile user experience
mongo                               1.1.8* Adaptor for using MongoDB and Minimongo over DDP
pbastowski:angular-babel            1.3.6  Babel compiler and ng-annotate for Meteor 1.3
planettraining:angular-ui-calendar  0.0.6  Fullcalendar as ui-component
promise                             0.7.2* ECMAScript 2015 Promise polyfill with Fiber support
reactive-var                        1.0.10  Reactive variable
standard-minifier-css               1.0.7* Standard css minifier used with Meteor apps by default.
standard-minifier-js                1.0.7* Standard javascript minifiers used with Meteor apps by default.
tracker                             1.0.14  Dependency tracker to allow reactive callbacks
twbs:bootstrap                      3.3.6  The most popular front-end framework for developing responsiv...
urigo:static-templates              0.0.5* Meteor plugin for importing static HTML templates

【问题讨论】:

  • 你试过meteor add angularjs:angular@=1.5.7吗?
  • 我得到了这个错误:没有这样的版本 angularjs:angular@1.5.7
  • 根据this,你应该试试meteor add angular:angular@1.5.7

标签: angularjs meteor angular-meteor


【解决方案1】:

Meteor 包 planettraining:angular-ui-calendar 正在拉取 Angular 1.3(依赖项),因为它正在替换通过 NPM 安装的 Angular 1.5.7 包。

【讨论】:

  • 那么你是从 npm 获得 angular-ui-calendar 吗?
  • 由于它的依赖性(角度 1.3.15),我使用了流星包。 NPM 包可能有效(我没有尝试过),因为它的包中没有角度依赖性
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-07-16
  • 2020-10-20
  • 2015-05-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多