我正在尝试在此链接https://auth0.com/blog/angular-2-authentication/下为角色应用auth0示例,但没有成功。我升级到Angular 4.每当我尝试点击"登录"链接锁定窗口小部件显示错误为: Something went wrong. Please contact technical support.
我正在使用带有以下版本的angular-cli:
@angular/cli: 1.0.0
node: 7.7.4
os: win32 x64
npm: 4.1.2
这里是角度项目"依赖"将其从v2升级到v4后:
{
"@angular/animations": "^4.0.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/compiler-cli": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/platform-server": "^4.0.0",
"@angular/router": "^4.0.0",
"angular2-in-memory-web-api": "0.0.21",
"angular2-jwt": "^0.1.28",
"core-js": "^2.4.1",
"rxjs": "^5.2.0",
"toastr": "^2.1.2",
"typescript": "^2.2.1",
"zone": "^0.3.4",
"zone.js": "^0.8.5"
.. \ ng2auth> npm ls --depth 0
ng2auth@0.0.0 ..\ng2auth
+-- @angular/compiler-cli@4.0.0 invalid
+-- UNMET PEER DEPENDENCY @angular/core@4.0.0
+-- UNMET PEER DEPENDENCY @angular/http@4.0.0
+-- UNMET PEER DEPENDENCY rxjs@5.2.0
`-- UNMET PEER DEPENDENCY zone.js@0.8.5
npm ERR! peer dep missing: @angular/core@^2.0.0, required by angular2-in-memory-web-api@0.0.21
npm ERR! peer dep missing: @angular/core@^2.0.0, required by angular2-jwt@0.1.28
npm ERR! peer dep missing: @angular/http@^2.0.0, required by angular2-in-memory-web-api@0.0.21
npm ERR! peer dep missing: @angular/http@^2.0.0, required by angular2-jwt@0.1.28
npm ERR! peer dep missing: rxjs@5.0.0-beta.12, required by angular2-in-memory-web-api@0.0.21
npm ERR! peer dep missing: zone.js@^0.6.25, required by angular2-in-memory-web-api@0.0.21
npm ERR! invalid: @angular/compiler-cli@4.0.0 ..\ng2auth\node_modules\@angular\compiler-cli
npm ERR! invalid: typescript@2.2.1 ..\ng2auth\node_modules\typescript
请帮忙吗?