2015-12-05 70 views
0

我試圖運行MEAN堆棧,我試圖通過運行node server命令來啓動節點服務器,得到錯誤「assetmanager.process不是一個函數」試圖啓動節點服務器

`TypeError: assetmanager.process is not a function at configureApp (C:\Users\Harsh\first\node_modules\meanio\lib\core_modules\module\aggregation.js:401:29) at Consumer.Dependable.runAction (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:73:22) at Consumer.Dependable.fire (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:70:53) at Consumer.onResolved (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:120:8) at Consumer.Dependable.resolve (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:56:10) at Meanio.Container.notifyResolved (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:209:7) at Dependency.onResolved (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:105:18) at Dependency.Dependable.resolve (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:56:10) at Meanio.Container.register (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:167:5) at C:\Users\Harsh\first\node_modules\meanio\lib\core_modules\db\index.js:101:20 at open (C:\Users\Harsh\first\node_modules\mongoose\lib\connection.js:488:17) at NativeConnection.Connection.onOpen (C:\Users\Harsh\first\node_modules\mongoose\lib\connection.js:498:5) at C:\Users\Harsh\first\node_modules\mongoose\lib\connection.js:457:10 at C:\Users\Harsh\first\node_modules\mongoose\lib\drivers\node-mongodb-native\connection.js:60:5 at C:\Users\Harsh\first\node_modules\mongodb\lib\db.js:229:5 at connectHandler (C:\Users\Harsh\first\node_modules\mongodb\lib\server.js:279:7) at g (events.js:260:16) at emitOne (events.js:77:13) at emit (events.js:169:7) at C:\Users\Harsh\first\node_modules\mongodb-core\lib\topologies\server.js:409:23 at C:\Users\Harsh\first\node_modules\mongodb-core\lib\topologies\server.js:778:13 at Callbacks.emit (C:\Users\Harsh\first\node_modules\mongodb-core\lib\topologies\server.js:95:3) C:\Users\Harsh\first\node_modules\mongodb\lib\server.js:282 process.nextTick(function() { throw err; }) ^

TypeError: assetmanager.process is not a function at configureApp (C:\Users\Harsh\first\node_modules\meanio\lib\core_modules\module\aggregation.js:401:29) at Consumer.Dependable.runAction (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:73:22) at Consumer.Dependable.fire (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:70:53) at Consumer.onResolved (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:120:8) at Consumer.Dependable.resolve (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:56:10) at Meanio.Container.notifyResolved (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:209:7) at Dependency.onResolved (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:105:18) at Dependency.Dependable.resolve (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:56:10) at Meanio.Container.register (C:\Users\Harsh\first\node_modules\lazy-dependable\index.js:167:5) at C:\Users\Harsh\first\node_modules\meanio\lib\core_modules\db\index.js:101:20 at open (C:\Users\Harsh\first\node_modules\mongoose\lib\connection.js:488:17) at NativeConnection.Connection.onOpen (C:\Users\Harsh\first\node_modules\mongoose\lib\connection.js:498:5) at C:\Users\Harsh\first\node_modules\mongoose\lib\connection.js:457:10 at C:\Users\Harsh\first\node_modules\mongoose\lib\drivers\node-mongodb-native\connection.js:60:5 at C:\Users\Harsh\first\node_modules\mongodb\lib\db.js:229:5 at connectHandler (C:\Users\Harsh\first\node_modules\mongodb\lib\server.js:279:7) at g (events.js:260:16) at emitOne (events.js:77:13) at emit (events.js:169:7) at C:\Users\Harsh\first\node_modules\mongodb-core\lib\topologies\server.js:409:23 at C:\Users\Harsh\first\node_modules\mongodb-core\lib\topologies\server.js:778:13 at Callbacks.emit (C:\Users\Harsh\first\node_modules\mongodb-core\lib\topologies\server.js:95:3)

還用gulp命令還是一樣的錯誤,我在哪裏出錯?

回答

0

有一個類似的錯誤,當git克隆出現問題時。再克隆庫,然後在控制檯上運行:

git clone https://github.com/meanjs/mean.git myprojectname 
npm install 
bower install 

的安裝過程將需要一段時間但畢竟這運行gulp應該工作。

相關問題