Each time I try to sudo npm install Angular 2 modules, everything updates and installs correctly. However, I encounter the following error when the typings install is attempted:
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0968676e7c65687b3b24606724646c64667b70247e6c6b246879604939273927383b">[email protected]</a> requires a peer of @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c0a3afb2a580f2eef0eef0edb2a3eef2">[email protected]</a> but none was installed.
npm WARN <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1b7a757c6e777a692936727536767e76746962366c7e79367a6b725b2b352b352a29">[email protected]</a> requires a peer of @angular/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3a524e4e4a7a08140a140a1748591408">[email protected]</a> but none was installed.
npm WARN <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a2c3cc90fdd0cdd7d6c7d1e2938c928c92">[email protected]</a> No description
npm WARN <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="80e1eeb2dff2eff5f4e5f3c0b1aeb0aeb0">[email protected]</a> No repository field.
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.5
npm ERR! npm v3.10.4
npm ERR! code ELIFECYCLE
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="90f1fea2cfe2ffe5e4f5e3d0a1bea0bea0">[email protected]</a> postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e1808fd3be938e94958492a1d0cfd1cfd1">[email protected]</a> postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the an2_routes package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs an2_routes
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls an2_routes
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/matthewatwell/Development/webDev/An2_routes/npm-debug.log
I have globally installed npm and typings with elevated permissions.
Package.json
{
"name": "an2_routes",
"version": "1.0.0",
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.0-rc.3",
"@angular/compiler": "2.0.0-rc.3",
"@angular/core": "2.0.0-rc.3",
"@angular/forms": "0.1.1",
"@angular/http": "2.0.0-rc.3",
"@angular/platform-browser": "2.0.0-rc.3",
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
"@angular/router": "3.0.0-alpha.7",
"@angular/router-deprecated": "2.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.3",
"systemjs": "0.19.27",
"core-js": "^2.4.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12",
"angular2-in-memory-web-api": "0.0.12",
"bootstrap": "^3.3.6"
},
"devDependencies": {
"concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"typescript": "^1.8.10",
"typings":"^1.0.4"
}
}
typings.json
{
"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"
}
}