1
정말 실망합니다. 내 응용 프로그램을 위해 ngx-translate를 설치했지만 내 @ angular/core 및 rxjs를 업데이트해야합니다. https://angular-update-guide.firebaseapp.com/을 사용하여 Angular를 완전히 업데이트하기로 결정했습니다. 그것은에 나에게 말했다 :npm을 사용하여 Angular를 업데이트하는 중에 오류가 발생했습니다.
npm install @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0'
@angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0'
@angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0'
@angular/[email protected]'^5.0.0'
@angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0'[email protected] [email protected]'^5.5.2'
내 콘솔에이 붙여 입력 쳤을 때, 나는 다음과 같은 오류를 얻을 : 나는 또한 단지 각도/코어와 rxjs @ 업데이트하기 위해 노력했다
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "@angular/[email protected]'5.0.0'" "[email protected]" "[email protected]'5.5.2'"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ETARGET
npm ERR! notarget No compatible version found: [email protected]'5.5.2'
npm ERR! notarget Valid install targets:
npm ERR! notarget 6.0.0-alpha.0, 5.5.6, 5.5.5, 5.5.4, 5.5.3, 5.5.2, 5.5.1, 5.5.0, 5.5.0-beta.7, 5.5.0-beta.5, 5.5.0-beta.4, 5.5.0-beta.3, 5.5.0-beta.2, 5.5.0-beta.1, 5.5.0-beta.0, 5.4.3, 5.4.2, 5.4.1, 5.4.0, 5.3.3, 5.3.1, 5.3.0, 5.2.1-smooth, 5.2.0, 5.1.1, 5.1.0, 5.0.3, 5.0.2, 5.0.1, 5.0.0, 5.0.0-rc.5, 5.0.0-rc.4, 5.0.0-rc.3, 5.0.0-rc.2, 5.0.0-rc.1, 5.0.0-beta.12, 5.0.0-beta.11, 5.0.0-beta.10, 5.0.0-beta.9, 5.0.0-beta.8, 5.0.0-beta.7, 5.0.0-beta.6, 5.0.0-beta.5, 5.0.0-beta.4, 5.0.0-beta.3, 5.0.0-beta.2, 5.0.0-beta.1, 5.0.0-beta.0, 5.0.0-alpha.14, 5.0.0-alpha.13, 5.0.0-alpha.12, 5.0.0-alpha.11, 5.0.0-alpha.10
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! Please include the following file with any support request:
npm ERR! c:\pdws-view-v2\npm-debug.log
을 하지만 예를 npm install @angular/[email protected]
위해 나는이 메시지를받을 때
+-- @angular/[email protected]
| `-- [email protected]
| `-- [email protected]
+-- UNMET PEER DEPENDENCY @angular/[email protected]
`-- UNMET PEER DEPENDENCY (rxjs) invalid error: ENOENT: no such file or directory, open 'c:\pdws-view-v2\node_modules\rxjs\package.json
그리고 이와 같은 경고의 무리 :
,369을또한npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed.
, 이러한 설치를 시도 후, 내 응용 프로그램은 더 이상 컴파일 나에게이 오류 포기하지 않을 것이다 : 나는이 시점에서 어떻게해야합니까
Failed to compile.
./~/@angular/core/@angular/core.es5.js
Module build failed: Error: ENOENT: no such file or directory, open 'c:\pdws-view-v2\node_modules\@angular\core\@angular\core.es5.js'
at Error (native)
@ ./src/main.ts 1:0-47
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
를? 감사.
만 각도/애니메이션 @ 및 각도/일반 @ 언급 한 어떤 이유를 다시 설치? – Jesper
죄송합니다. 다른 사람을 추가하는 것을 잊어 버렸습니다. –
npm clean이 문제를 해결합니까? –