简体   繁体   English

Angular CLI(ng --version)命令错误TS和WebPack

[英]Angular CLI (ng --version) command Error TS and WebPack

After firing a command in VSCode Terminal $ ng --version the following came out. 在VSCode Terminal $ ng --version中触发命令后,出现了以下内容。

Angular CLI: 1.6.3 Node: 9.4.0 OS: darwin x64 Angular CLI:1.6.3节点:9.4.0操作系统:darwin x64

Angular: error ... animations, cdk, cli, common, compiler, compiler-cli, core ... forms, http, language-service, material, platform-browser ... platform-browser-dynamic, router 角度:错误...动画,cdk,cli,通用,编译器,compiler-cli,核心...表格,http,语言服务,材料,平台浏览器...平台浏览器动态,路由器

typescript: error webpack: error 打字稿:错误webpack:错误

Question: Is this the reason I cannot have error in ng serve --open command. 问题:这是我在ng serve --open命令中不会出错的原因。 How can I resolve this. 我该如何解决。

Thanks 谢谢

您可能正在使用全局ng ,在这种情况下,它正在报告项目级别软件包的版本-尝试npm install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用@ angular / cli(angular-cli,ng cli)定义webpack入口文件? - How to define a webpack entry file using @angular/cli (angular-cli, ng cli)? 为什么我已经安装了 angular-cli 时出现此错误 bash 找不到 ng 命令 - why I have this error bash ng command not found while I already installed the angular-cli angular-cli ng命令给出“意外令牌=” - angular-cli ng command gives “Unexpected token =” Angular-CLI“ ng e2e”:在带有ts节点的量角器测试中缺少localStorage - Angular-CLI “ng e2e”: missing localStorage in protractor tests with ts-node polyfills.ts 不是用 ng new 创建的<project>与角cli</project> - polyfills.ts does not get created with ng new <project> with the angular cli -bash:ng:使用npm链接@ angular / cli @ latest安装@ angular / cli后找不到命令 - -bash: ng: command not found after installing @angular/cli using npm link @angular/cli@latest 此版本的CLI仅与Angular 5.0.0或更高版本错误兼容 - This version of CLI is only compatible with Angular version 5.0.0 or higher error 在 .ts 文件上运行 Webpack CLI 时,它会静默失败吗? - Webpack CLI silently fails when running it on a .ts file? Angular:ng 未被识别为命令 - Angular: ng is not recognized as a command 无效的 JSON 字符:&quot;&quot; 在 0:0。 运行命令“ng update @angular/cli --migrate-only --from=1.7.4”时 - Invalid JSON character: "" at 0:0. when running command "ng update @angular/cli --migrate-only --from=1.7.4"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM