2017-05-28 12 views
0

私は前に、次のでした:セーバーはどこから来ますか?

MacBook-Pro:bb-ns-ng-dr ishandutta2007$ npm uninstall -g semver 
MacBook-Pro:bb-ns-ng-dr ishandutta2007$ npm uninstall semver 
MacBook-Pro:bb-ns-ng-dr ishandutta2007$ rm -rf platforms/ 
MacBook-Pro:bb-ns-ng-dr ishandutta2007$ rm -rf node_modules/ 
MacBook-Pro:bb-ns-ng-dr ishandutta2007$ tns build android --clean 

私はsemver semverはノードIが定義したモジュールもtheri三次の依存関係のいずれかの任意のどちらであっても、リソース・エラーを複製し得続けます。重複したリソースの共鳴を脇に置いておくと、私はそれが最初にどのように来るのか、より興味が持てます。ここで

Could not merge source set folders: [app/node_modules/semver/semver.min.js] /Users/ishandutta2007/Documents/Projects/bb-ns-ng-dr/platforms/android/src/main/assets/app/node_modules/semver/semver.min.js [app/node_modules/semver/semver.min.js] /Users/ishandutta2007/Documents/Projects/bb-ns-ng-dr/platforms/android/src/main/assets/app/node_modules/semver/semver.min.js.gz: Error: Duplicate resources [app/node_modules/semver/semver.browser.js] /Users/ishandutta2007/Documents/Projects/bb-ns-ng-dr/platforms/android/src/main/assets/app/node_modules/semver/semver.browser.js [app/node_modules/semver/semver.browser.js] /Users/ishandutta2007/Documents/Projects/bb-ns-ng-dr/platforms/android/src/main/assets/app/node_modules/semver/semver.browser.js.gz: Error: Duplicate resources

私のノードモジュールのパッケージツリーが

MacBook-Pro:bb-ns-ng-dr ishandutta2007$ npm ls 
/Users/ishandutta2007/Documents/Projects/bb-ns-ng-dr 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── UNMET PEER DEPENDENCY @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @angular/[email protected] 
├── @ngrx/[email protected] 
├── @ngrx/[email protected] 
├── @ngrx/[email protected] 
├── @ngrx/[email protected] 
├── @types/[email protected] 
├── @types/[email protected] 
├── @types/[email protected] 
├── @types/[email protected] 
├── @types/[email protected] 
├─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └─┬ [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ └─┬ [email protected] 
│  └── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
├── [email protected] 
└── [email protected] 

npm ERR! peer dep missing: @angular/[email protected]^2.0.0, required by @ngrx/[email protected] 
npm ERR! peer dep missing: @angular/[email protected]^2.0.0, required by @ngrx/[email protected] 
npm ERR! peer dep missing: @angular/[email protected]^2.0.0-rc.5, required by [email protected] 

答えて

0

npmどのように見えるかですsemverに依存し、あなたが完全にあなたのグローバルからそれを取り除くことができそうにありません。 According to npmに依存する4,000以上のパッケージがあります。

どこから来ているのかを尋ねる代わりに、自分がどのような問題を抱えているのかという質問に集中したいと思うかもしれません。

+0

私はrepoを削除し、再度クローンし、 '' npm i'''を実行しました。今はnode_modulesでセマバを実行することも、上記の問題を再現することもできません。 – ishandutta2007

関連する問題