無論我在哪裏運行npm install,都會發生此錯誤。我已經找到答案,看起來似乎沒有匹配這種特殊情況。運行npm install時出錯
我正在用Angular 2創建一個ASP.NET Core應用程序,並將其作爲我的指南。然而不管我用什麼引導我在NPM-調試結束得到錯誤的這個名單:
178 error Windows_NT 10.0.10586
179 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
180 error node v4.4.7
181 error npm v2.15.8
182 error code EPEERINVALID
183 error peerinvalid The package @angular/[email protected] does not satisfy its siblings' peerDependencies requirements!
183 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.7
183 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.7
183 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.7
183 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0-rc.7
183 error peerinvalid Peer @angular/[email protected] wants @angular/[email protected]^2.0.0v
184 verbose exit [ 1, true ]
在這種情況下,我有一個的package.json文件,如下所示:
{
"name": "aspnetcoreangular2webpackstarter",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "tsc && npm install && concurrently \"tsc -w\" \"dotnet run\" \"npm run startWebpackDevServer\" ",
"startWebpackDevServer": "webpack-dev-server --inline --progress --port 8080",
"build": "SET NODE_ENV=development && webpack -d --color && dotnet run",
"buildProduction": "SET NODE_ENV=production && webpack -d --color",
"lint": "tslint ./app/**/*.ts -t verbose",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"keywords": [],
"author": "Fabian Gosebrink",
"dependencies": {
"@angular/common": "2.0.0-rc.7",
"@angular/compiler": "2.0.0-rc.7",
"@angular/compiler-cli": "0.6.1",
"@angular/core": "2.0.0-rc.7",
"@angular/forms": "2.0.0-rc.7",
"@angular/http": "2.0.0-rc.7",
"@angular/platform-browser": "2.0.0-rc.7",
"@angular/platform-browser-dynamic": "2.0.0-rc.7",
"@angular/router": "3.0.0-rc.3",
"@angular/upgrade": "2.0.0-rc.7",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.27",
"zone.js": "^0.6.21",
"bootstrap": "^3.3.6",
"jquery": "2.2.4"
},
"devDependencies": {
"tslint": "^3.7.4",
"lodash": "^4.11.1",
"rimraf": "^2.5.2",
"ts-loader": "^0.8.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",
"webpack": "^1.12.14",
"webpack-dev-server": "^1.14.1",
"webpack-merge": "^0.9.0",
"webpack-stream": "^3.2.0",
"html-loader": "^0.4.3",
"html-webpack-plugin": "^2.15.0",
"clean-webpack-plugin": "0.1.10",
"style-loader": "0.13.1",
"css-loader": "^0.23.1",
"raw-loader": "^0.5.1",
"sass-loader": "^3.1.2",
"node-sass": "3.8.0",
"concurrently": "^2.2.0",
"lite-server": "^2.2.2",
"typescript": "^1.8.10",
"typings": "^1.3.2"
}
}
我好像在那裏我試圖讓這個錯誤不管並創建項目,然後運行「故宮安裝」
我已經把asp.netcore在標籤的列表,我創建一個角2 PRO在asp.netcore ject ..
這些錯誤意味着什麼,我該怎麼做才能刪除它們?
刪除node_modules \ @angular \共同文件夾,然後運行NPM重新安裝。 – Sanket