Skip to content

运行有误404:找不到资源 #1

@luozt

Description

@luozt

把package.json改为这样:

{
  "name": "angular2App",
  "version": "1.0.0",
  "description": "Default template for fis angular 2 app.",
  "main": "index.js",
  "scripts": {
    "release": "fis3 release",
    "server.start": "fis3 server start",
    "server.stop": "fis3 server stop",
    "server.clean": "fis3 server clean",
    "server.clear": "fis3 server stop && fis3 server clean",
    "start": "npm run server.start && npm run release",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/fis-scaffold/angular2-app.git"
  },
  "keywords": [
    "fis",
    "scaffold"
  ],
  "author": "fex",
  "license": "BSD",
  "bugs": {
    "url": "https://github.com/fis-scaffold/angular2-app/issues"
  },
  "homepage": "https://github.com/fis-scaffold/angular2-app",
  "dependencies": {
    "fis3": "^3.4.13",
    "fis3-hook-system": "^0.1.1",
    "fis3-parser-typescript": "^0.1.2",
    "fis3-postpackager-loader": "^1.3.6"
  }
}

npm i然后运行npm start后,打开浏览器页面报2个404错误:

Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:8080/angular2/angular2.js

Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:8080/angular2/angular2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions