希望有人可以提供帮助:
我确实在<div id="sk_tabAlertDesId" class="sk_tabAlertDes errorDesWOH" tabindex="0">
<span aria-label="Popup Displayed"></span> capitalize first letter of sentence - Span at beginning
</div>
<div id="sk_tabAlertDesId" class="sk_tabAlertDes errorDesWOH" tabindex="0">
capitalize first letter of sentence - No Span
</div>
<div id="sk_tabAlertDesId" class="sk_tabAlertDes errorDesWOH" tabindex="0">
capitalize first letter of sentence - Span at end
<span aria-label="Popup Displayed"></span>
</div>
npm install
然后我只是尝试运行命令PS C:\source\Ccre\3.3.2\angular\src> npm install
npm WARN @angular/http@5.0.2 requires a peer of @angular/platform-browser@5.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN nswag@11.12.9 requires a peer of npm@>=3.10.8 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 115 packages in 7.207s
PS C:\source\Ccre\3.3.2\angular\src
:
错误
npm start
我已经尝试了
1)删除整个文件夹:ERROR in Error: Metadata version mismatch for module c:/source/Ccre/3.3.2/angular/node_modules/abp-ng2-module/node_modules/@angular/http/http.d.ts, found version 4, expected 3, resolving symbol ABP_HTTP_PROVIDER in c:/source/Ccre/3.3.2/angular/node_modules/abp-ng2-module/src/abp.module.ts, resolving symbol RootModule in c:/source/Ccre/3.3.2/angular/src/root.module.ts, resolving symbol RootModule in c:/source/Ccre/3.3.2/angular/src/root.module.ts
at syntaxError (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler\bundles\compiler.umd.js:1729:34)
at simplifyInContext (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler\bundles\compiler.umd.js:24979:23)
at StaticReflector.simplify (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler\bundles\compiler.umd.js:24991:13)
at StaticReflector.annotations (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler\bundles\compiler.umd.js:24418:41)
at _getNgModuleMetadata (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler-cli\src\ngtools_impl.js:138:31)
at _extractLazyRoutesFromStaticModule (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26)
at Object.listLazyRoutesOfModule (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22)
at Function.NgTools_InternalApi_NG_2.listLazyRoutes (c:\source\Ccre\3.3.2\angular\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39)
at AotPlugin._getLazyRoutesFromNgtools (c:\source\Ccre\3.3.2\angular\node_modules\@ngtools\webpack\src\plugin.js:241:66)
at _donePromise.Promise.resolve.then.then.then.then.then (c:\source\Ccre\3.3.2\angular\node_modules\@ngtools\webpack\src\plugin.js:495:24)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
webpack: Failed to compile.
2)然后重新安装node.js
我的package.json文件如下所示:
C:\Program Files\nodejs\node_modules
答案 0 :(得分:0)
删除node_modules
文件夹并使用yarn安装依赖项。
来自此问题:https://github.com/aspnetboilerplate/module-zero-core-template/issues/141
当我运行npm install或yarn install时,它会安装每个软件包的最新版本 问题是它安装了4.4.6版和abp-ng2-module版本1.3,
npm install就是这样的。 我们正在使用和建议纱线,因为可以预防这些问题。
如果你upgrade Angular to v5,它应该适用于npm。