Hi,
I am trying to run npm install, I'm not sure what's it, all I doing is following an article to make my application workable with Angular 2.0, but its never stopping giving me errors. I don't know why is so tough to install it.
I have created package.json file, copied the following script init. ABCSolution is my solution name and ABCWebApp is my asp.net mvc application name, I don't know which one should I use for the name there, I putting the Solution Name
{"version": "1.0.0","name": "ABCSolution","author": "Abdul Aleem","description": "This is for Calpers834","dependencies": {"@angular/common": "2.0.0-rc.5","@angular/compiler": "2.0.0-rc.6","@angular/core": "2.0.0-rc.6","@angular/forms": "2.0.0-rc.6","@angular/http": "2.0.0-rc.6","@angular/platform-browser": "2.0.0-rc.6","@angular/platform-browser-dynamic": "2.0.0-rc.6","@angular/router": "3.0.0-rc.2","@angular/upgrade": "2.0.0-rc.6","@types/lodash": "^4.14.42","core-js": "^2.4.1","moment": "^2.14.1","reflect-metadata": "^0.1.3","rxjs": "5.0.0-beta.6","systemjs": "^0.19.37","typings": "^1.3.2","zone.js": "^0.6.12"
},"devDependencies": {"gulp": "^3.9.1","gulp-clean": "^0.3.2","gulp-concat": "^2.6.0","gulp-less": "^3.1.0","gulp-sourcemaps": "^1.6.0","gulp-typescript": "^2.13.6","gulp-uglify": "^2.0.0","typescript": "^1.8.10"
},"scripts": {"postinstall": "typings install dt~core-js --global"
}
}
I have created typings.json file and placed the following script there
{"globalDependencies": {"core-js": "registry:dt/core-js#0.0.0+20160602141332","jasmine": "registry:dt/jasmine#2.2.0+20160621224255","node": "registry:dt/node#6.0.0+20160621231320"
}
}
I placed them in the Project folder first and ran the npm install from that same folder it gave me errors, then I placed these files in the Solution files, then ran the npm install, never leaving the errors.
I am frustrated and tired, I am not understanding what are those dependencies are what are those versions in them.
Can anybody please help me in this aspect, what went wrong, I really need this help a suggestion, a link or even a code snippet helps me greatly. What's this npm install why is it making my life so tired, I don't know.
And the error that I getting is as below:
npm ERR! peerinvalid The package @angular/common does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer @angular/forms@2.0.0-rc.6 wants @angular/common@^2.0.0-rc.6
npm ERR! peerinvalid Peer @angular/platform-browser@2.0.0-rc.6 wants @angular/common@^2.0.0-rc.6
npm ERR! peerinvalid Peer @angular/platform-browser-dynamic@2.0.0-rc.6 wants @angular/common@^2.0.0-rc.6
npm ERR! peerinvalid Peer @angular/router@3.0.0-rc.2 wants @angular/common@^2.0.0-rc.6
And if I am running "npm run typings install" in either the Project folder or Solution folder, then its giving me the following error:
npm ERR! missing script: typings
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <a href="https://github.com/npm/npm/issues">https:
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\aaleem01\Desktop\Calpers834\npm-debug.log
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."