用凉亭安装ng-table

时间:2015-01-31 01:53:10

标签: angularjs bower ngtable meanjs bower-install

嗨我在使用凉亭安装ng-table时遇到问题

bower install ng-table
"module.js:340"
    "throw err;"
          ^
Error: Cannot find module 'insight' 
at Function.Module._resolveFilename (module.js:338:15) 
at Function.Module._load (module.js:280:25) 
at Module.require (module.js:364:17) 
at require (module.js:380:17) 
at ensureInsight (C:\Users\Samsung\AppData\Roaming\npm\node_modules\bower\lib\util\analytics.js:24:23) 
at Object.setup (C:\Users\Samsung\AppData\Roaming\npm\node_modules\bower\lib\util\analytics.js:43:9) 
at Object.<anonymous> (C:\Users\Samsung\AppData\Roaming\npm\node_modules\bower\bin\bower:72:11) 
at Module._compile (module.js:456:26) 
at Object.Module._extensions..js (module.js:474:10) 
at Module.load (module.js:356:32)

3 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。我尝试全球安装凉亭。 npm install -g bower和bower install工作正常。

答案 1 :(得分:1)

使用:

bower install ng-table-bundle --save

来自:https://github.com/Greenek/bower-ng-table

答案 2 :(得分:0)

我首先尝试sudo npm install -g bower然后在遇到此问题后能够使用bower install ng-table