Node.js 爱奥尼亚2:在“警告”之后发出警告;npm安装“;
我使用的是Ionic v2.1.8,当我运行命令“npm install”时,我有很多类似这样的警告:Node.js 爱奥尼亚2:在“警告”之后发出警告;npm安装“;,node.js,angular,npm,ionic2,Node.js,Angular,Npm,Ionic2,我使用的是Ionic v2.1.8,当我运行命令“npm install”时,我有很多类似这样的警告: C:\xampp\htdocs\AppFineMobile>npm install npm WARN @angular/compiler@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed. npm WARN @angular/compiler-cli@2.4.8 requires a peer of @
C:\xampp\htdocs\AppFineMobile>npm install
npm WARN @angular/compiler@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/compiler-cli@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/forms@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/forms@2.4.8 requires a peer of @angular/common@2.4.8 but none was installed.
npm WARN @angular/http@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/http@2.4.8 requires a peer of @angular/platform-browser@2.4.8 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.4.8 requires a peer of @angular/common@2.4.8 but none was installed.
npm WARN @angular/platform-browser-dynamic@2.4.8 requires a peer of @angular/platform-browser@2.4.8 but none was installed.
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/common@2.4.8 but none was installed.
npm WARN @angular/platform-server@2.4.8 requires a peer of @angular/platform-browser@2.4.8 but none was installed.
npm WARN ionic-angular@2.2.0 requires a peer of @angular/common@2.4.8 but none was installed.
npm WARN ionic-angular@2.2.0 requires a peer of @angular/core@2.4.8 but none was installed.
npm WARN ionic-angular@2.2.0 requires a peer of @angular/platform-browser@2.4.8 but none was installed.
npm WARN ionic-angular@2.2.0 requires a peer of rxjs@5.0.1 but none was installed.
npm WARN ionic-angular@2.2.0 requires a peer of zone.js@0.7.2 but none was installed.
My package.json文件:
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"test": "ng test"
},
"config": {
"ionic_copy": "./config/copy.config.js"
},
"dependencies": {
"@angular/common": "^2.4.0",
"@angular/compiler": "^2.4.0",
"@angular/compiler-cli": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/forms": "^2.4.0",
"@angular/http": "^2.4.0",
"@angular/platform-browser": "^2.4.0",
"@angular/platform-browser-dynamic": "^2.4.0",
"@angular/platform-server": "^2.4.0",
"@angular/router": "^3.4.0",
"@ionic/storage": "2.0.0",
"font-awesome": "^4.7.0",
"ionic-angular": "2.2.0",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
"rxjs": "^5.1.0",
"sw-toolbox": "3.4.0",
"zone.js": "^0.7.6"
},
"devDependencies": {
"@angular/cli": "^1.0.0",
"@ionic/app-scripts": "1.1.4",
"codecov": "^2.1.0",
"jasmine-core": "^2.5.2",
"karma": "^1.5.0",
"karma-chrome-launcher": "^2.0.0",
"karma-jasmine": "^1.1.0",
"karma-mocha-reporter": "^2.2.3",
"karma-remap-istanbul": "^0.6.0",
"typescript": "2.0.9"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"ionic-plugin-keyboard",
"cordova-plugin-splashscreen"
],
"cordovaPlatforms": [],
"description": "AppFineMobile: An Ionic project"
}
我不明白,因为我的node_modules文件夹中有这些模块。当我尝试安装其中一个时,我会在另一个npm安装中保持警告
我真的不明白,我也不知道如何解决这个问题。你只需要将你所有的
Angle软件包更新到2.4.8
。而且你的离子Angle
软件包是2.2.0
更改:
"@angular/common": "^2.4.8",
"@angular/compiler": "^2.4.8",
"@angular/compiler-cli": "^2.4.8",
"@angular/core": "^2.4.8",
"@angular/forms": "^2.4.8",
"@angular/http": "^2.4.8",
"@angular/platform-browser": "^2.4.8",
"@angular/platform-browser-dynamic": "^2.4.8",
"@angular/platform-server": "^2.4.8",
也
如果出现问题,请清除您的node\u modules
文件夹,并执行以下操作:
npm安装
您可以添加您的package.json吗?必须有依赖性问题。我已经更新了我的帖子哦,很好,没关系。但现在我在npm安装后又出现了3个新错误:未满足对等依赖@angular/common@2.4.8未满足的对等依赖@angular/core@2.4.8角度/平台未满足对等依赖性-browser@2.4.8他们收到了红色通知。
"rxjs": "^5.0.1",
"zone.js" :"0.7.2"