首页 文章

无法读取未定义的属性'nodeModulesPath' - EMBER

提问于
浏览
4

安装ember-power-calendar之后我遇到了这个错误:

无法读取未定义TypeError的属性'nodeModulesPath':无法读取DependencyVersionChecker.NPMDependencyVersionChecker中未定义的属性'nodeModulesPath'

我清除了npm和bower缓存,删除了node_modules,bower_components,dist和tmp文件夹,而不是从包json中删除了ember-power-calendar包,之后运行了npm install && bower install .

但它没有帮助 .

另外我看到ember-power-calendar与ember-cli@2.10有依赖关系 . 但我有2.8 . 我甚至更新了ember-cli,做了上面的步骤,它也没有帮助 .

最后一个想法是重新安装node和npm来清理全局模块 . 但我不确定它会有所帮助 .

你有什么想法?

提前致谢!

1 回答

  • 1

    我已经完全调查了这个问题 .

    Firstly, pay attention to deprecations errors in your console and try to fix them.

    在我安装了ember-power-calendar之后,我发现在这个插件的package.json中它依赖于ember-cli@2.10 . 但在那之前我有2.8 .

    ember-cli@2.10带来了一些弃用(例如,this._super在init方法中成为必需的) . 这就是我的应用程序中很少有插件破坏构建的原因 .

    Update devDependencies to latest versions and I'm sure that it will help you.

    谢谢你的回答 .

相关问题