2017-04-21 218 views
-2

我是Angular中的新成員,而我按照並運行npm install我出現錯誤。「npm install」在Angular中安裝時出錯

在此服務器上找不到請求的URL /systemjs

enter image description here

我的package.json:

enter image description here

+0

我覺得你的package.json文件不正確 –

+0

我下載它的角只有網站 – Nanda

+0

不,沒有沒有太多認爲這個package.json是沒有必要的 –

回答

0

的package.json角4

{ 
    "name": "name", 
    "version": "1.0.0", 
    "scripts": {}, 
    "license": "ISC", 
    "dependencies": { 
    "@angular/animations": "^4.0.2", 
    "@angular/common": "^4.0.2", 
    "@angular/compiler": "^4.0.2", 
    "@angular/compiler-cli": "^4.0.2", 
    "@angular/core": "^4.0.2", 
    "@angular/flex-layout": "^2.0.0-beta.7", 
    "@angular/forms": "^4.0.2", 
    "@angular/http": "^4.0.2", 
    "@angular/material": "^2.0.0-beta.3", 
    "@angular/platform-browser": "^4.0.2", 
    "@angular/platform-browser-dynamic": "^4.0.2", 
    "@angular/platform-server": "^4.0.2", 
    "@angular/router": "^4.0.2", 
    "@angular/upgrade": "4.0.2", 
    "bootstrap": "^3.3.7", 
    "core-js": "^2.4.1", 
    "hammerjs": "^2.0.8", 
    "reflect-metadata": "^0.1.10", 
    "rxjs": "5.3.0", 
    "systemjs": "0.20.12", 
    "typescript": "^2.2.2", 
    "zone.js": "0.8.5" 
    }, 
    "devDependencies": { 
    "@types/core-js": "^0.9.34", 
    "typescript": "2.2.2", 
    "typings": "2.1.1" 
    } 
} 
+0

我現在更改了我正在獲取請求的URL/@ angular/platform-server在此服務器上未找到此錯誤。是這個registry.npmjs.org端口80是正確的 – Nanda

+0

我得到這個錯誤,然後將它從Package.Json文件 –

+0

刪除後,在npm安裝後運行此命令'npm install @ angular/platform-server --save' –