當我在創建/服務插件時遇到問題後,我按照常規步驟恢復(刪除node_modules,npm clean,npm install,...),但沒有成功。
所以最後我在哪裏我剛通過ember addon jeff-table
港口「老」不工作回購在那裏創建了一個新的插件舞臺....
附加組件,創建成功:構建新初始化插件時出現錯誤
installing addon
create .bowerrc
....
create .npmignore
Successfully initialized git.
Installed packages for tooling via npm.
Installed browser packages via Bower.
不管怎麼說,再次試圖建立不變插件時,我得到了同樣的錯誤:
Cannot read property '0' of undefined
TypeError: Cannot read property '0' of undefined
at EmberAddon.EmberApp._initVendorFiles (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\broccoli\ember-app.js:317:55)
at EmberAddon.EmberApp [as appConstructor] (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\broccoli\ember-app.js:94:8)
at new EmberAddon (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\broccoli\ember-addon.js:38:8)
at module.exports (C:\users\jefff\google drive\www\ember-addons\jeff-table\ember-cli-build.js:6:13)
at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\models\builder.js:55: 19)
at Class.module.exports.Task.extend.init (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\models\builder.js:89:10)
at new Class (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\node_modules\core-object\core-object.js:18:12) at Class.module.exports.Task.extend.run (C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\tasks\serve.js:15:19)
at C:\users\jefff\google drive\www\ember-addons\jeff-table\node_modules\ember-cli\lib\commands\serve.js:64:24
我懷疑的GDrive已經搞砸了我node_modules或不便,但在一個全新安裝,這可能並非如此(有GDrive的切換的)。
我沒有碰到ember-cli的安裝(不是我所知道的)。
有沒有人知道這裏可能會出現什麼問題?
燼-CLI:2.5.0 節點:4.2.2 操作系統:Win32的64
lodash沒有在package.json中列出,所以我該如何設置?我應該將它添加爲新的依賴項嗎? – Jeff