简体   繁体   English

当我尝试运行我的 angular 项目时,我的浏览器上出现“无法访问此站点”

[英]I am getting "This site can’t be reached" on my browser when I am trying to run my angular project

I have installed Angular 13 on my system and I am not able to view its output on my chrome or in any browser.我已经在我的系统上安装了 Angular 13,但我无法在我的 chrome 或任何浏览器中查看它的 output。 Getting "This site can't be reached" error.出现“无法访问此站点”错误。 I am new to angular.我是 angular 的新手。 Can anyone help me with that one?谁能帮我解决这个问题?

Angular CLI: 13.3.9
Node: 14.15.0
Package Manager: npm 6.14.8
OS: Linux x64

Angular: 13.3.11
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.9
@angular-devkit/build-angular   13.3.9
@angular-devkit/core            13.3.9
@angular-devkit/schematics      13.3.9
@angular/cli                    13.3.9
@schematics/angular             13.3.9
rxjs                            7.5.6
typescript                      4.6.4

And the package JSON file is this.而package JSON文件就是这个。

{
  "name": "my-app",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~13.3.0",
    "@angular/common": "~13.3.0",
    "@angular/compiler": "~13.3.0",
    "@angular/core": "~13.3.0",
    "@angular/forms": "~13.3.0",
    "@angular/platform-browser": "~13.3.0",
    "@angular/platform-browser-dynamic": "~13.3.0",
    "@angular/router": "~13.3.0",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~13.3.9",
    "@angular/cli": "~13.3.9",
    "@angular/compiler-cli": "~13.3.0",
    "@types/jasmine": "~3.10.0",
    "@types/node": "^12.11.1",
    "jasmine-core": "~4.0.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.1.0",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "~1.7.0",
    "typescript": "~4.6.2"
  }
}

And on the browser console, I am getting this warning.在浏览器控制台上,我收到了这个警告。

crbug/1173575, non-JS module files deprecated.
(anonymous) @ (index):6774

在此处输入图像描述

在此处输入图像描述

Maybe try to clear your history, cookies, and cache.也许尝试清除您的历史记录、cookies 和缓存。 Then delete the node_modules folder and run yarn install or npm install and then run ng serve --open .然后删除node_modules文件夹并运行yarn installnpm install然后运行ng serve --open The --open option automatically opens your browser to http://localhost:4200/ . --open选项会自动将您的浏览器打开到http://localhost:4200/

暂无
暂无

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

相关问题 尝试使用npm run start-ssr运行我的Angular时,控制台出现错误 - I am getting error in the console while trying to run my angular with npm run start-ssr 为什么在 macOS Catalina 上尝试为 Angular 项目运行 npm install 时会出现这些故障? - Why am I getting these failures when trying to run npm install for an Angular project on macOS Catalina? 当我尝试创建新的 Angular 项目并尝试安装 scss 时,出现错误 - when I am trying to creating new Angular project and trying to install scss, I am getting error 当我尝试在我的 Angular 项目中添加引导程序时出现此错误 - I am getting this error when i try to add bootstrap in my Angular project 在我的angular2应用程序上运行npm install和ng serve时,出现以下错误 - I am getting an below error when i run npm install and ng serve on my angular2 application 我正在学习 angular bootstrap,我正在尝试在我的机器上安装 npm。 它没有安装 - i am learning angular bootstrap, and i am trying to install npm on my machine. it is not getting installed 为什么将我的 Angular 项目部署到 Heroku 时出现 ng not found 错误? - Why am I getting an ng not found error when deploying my Angular project to Heroku? 使用 npm run build:prerender 构建我的 angular 通用应用程序时出现一些错误 - I am getting some error when building my angular universal app with npm run build:prerender 我无法运行我的 angular 应用程序 - I am unable to run my angular application ubunu 中的 Angular CLI 安装错误 - 当我尝试在我的 ubuntu 机器上运行 angular CLI 命令时出现错误 - Angular CLI installation error in ubunu - I have get an error when I am trying to run angular CLI command in my ubuntu machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM