Issues installing angular-google-maps

一个人想着一个人 提交于 2019-12-11 16:36:35

问题


When installing angular-google-maps my whole site breaks and I get errors from http://errors.angularjs.org/1.2.23/$injector/nomod?p0=ngTable

The 2 main errors say

  1. Cannot read property 'OverlayView' of undefined
  2. Module ngTable is not available ....

This happens as soon as I install the framework without me doing anything else, the command I run is

bower install angular-google-maps --save

This is the first thing I've ever installed with bower on my own so there might be something I am not doing.


回答1:


First make sure that bower requires Node, npm and Git.

Remember, bower is command line utility and if you are installing package like this then it is going to install that package at project level.

And for its installation you need to get in the command line mode, switch to the project root folder and type the following command at the command line prompt:

                          bower install "Package-Name" 

In your case it will be bower install angular-google-maps --save

And moreover it you want to install this package globally then add "-g" with above bower command.

For further info you can refer this link:

Installing and removing bower package



来源:https://stackoverflow.com/questions/25614714/issues-installing-angular-google-maps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!