Angular 爱奥尼亚2项目无法在新计算机上运行
我已经将我的电脑换成了一台新电脑,并尝试安装所有的东西来运行我的ionic 2项目,一切都正常并且是最新的,但是由于某种原因,我在运行ionic serve-l时遇到了以下错误Angular 爱奥尼亚2项目无法在新计算机上运行,angular,ionic2,Angular,Ionic2,我已经将我的电脑换成了一台新电脑,并尝试安装所有的东西来运行我的ionic 2项目,一切都正常并且是最新的,但是由于某种原因,我在运行ionic serve-l时遇到了以下错误 未捕获类型错误:jit\u val\u 0不是函数 评估时(ng:///AppModule/module.ngfactory.js:3) 在evalExpression(compiler.es5.js:26569) JITT语句(compiler.es5.js:26581) 在JitCompiler.\u compil
未捕获类型错误:jit\u val\u 0不是函数
评估时(ng:///AppModule/module.ngfactory.js:3)
在evalExpression(compiler.es5.js:26569)
JITT语句(compiler.es5.js:26581)
在JitCompiler.\u compileModule(compiler.es5.js:26862)
在compiler.es5.js:26801
at Object.then(compiler.es5.js:1683)
在JitCompiler.\u compileemoduleandcomponents(compiler.es5.js:26799)
在JitCompiler.compileModuleAsync(compiler.es5.js:26728)
在PlatformRef.\u bootstrapModuleWithZone(core.es5.js:4811)
在PlatformRef.bootstrapModule(core.es5.js:4797)
只需将angular模块更新为4.4.4
npm install @angular/core@latest
对这就成功了,我的
npm安装没有正确运行(很高兴它有帮助:)