2016-11-01 3 views
0

여기 내 bower.json입니다. 나는 Github에서 프로젝트를 가져 왔고, bower 파일은 우분투 14.04에서 업데이트되었다. 그러나 당기기 후에. 내 각 버전은 bower.json 파일에서 1.4.8을 보여줍니다. 그러나 bower_components 내부에는 각도 1.4.14가 있습니다. 그래서 "bower update"를 실행했습니다. 그러나 "ECONFLICT"에 맞는 버전을 찾을 수 없습니다. ". 나는 bower_components를 삭제하고 bower install을 실행했지만, 여전히 같은 문제가 발생합니다. 내 nodejs 버전은 6.9.1이고 최근에 설치했습니다. 지금 어떻게해야합니까? 제발 해결책을주세요."bower install"및 "bower update"오류 표시

{ 
    "name": "starter-gulp", 
    "version": "0.1.0", 
    "description": "Starter Code for Gulp Angular ", 
    "authors": [ 
    "John Papa" 
    ], 
    "license": "MIT", 
    "homepage": "https://github.com/..-gulp", 
    "ignore": [ 
    "**/.*", 
    "node_modules", 
    "bower_components" 
    ], 
    "devDependencies": { 
    "angular-mocks": "~1.3.8", 
    "sinon": "http://sinonjs.org/releases/sinon-1.12.1.js", 
    "bardjs": "~0.0.3" 
    }, 
    "dependencies": { 
    "angular": "~1.4.8", 
    "angular-animate": "~1.4.7", 
    "angular-bootstrap": "~1.1.0", 
    "angular-drag-and-drop-lists": "dndLists#~1.3.0", 
    "angular-resource": "~1.4.7", 
    "angular-sanitize": "~1.4.8", 
    "angular-summernote": "~0.7.0", 
    "angular-ui-router": "~0.2.13", 
    "bootflat": "*", 
    "bootstrap": "~3.3.6", 
    "extras.angular.plus": "~0.9.2", 
    "font-awesome": "~4.5.0", 
    "Ionicons": "ionicons#~2.0.1", 
    "jquery": "~2.1.4", 
    "jquery-quick-pagination": "*", 
    "jquery-ui": "~1.11.4", 
    "moment": "~2.8.4", 
    "remodal": "~1.0.6", 
    "summernote": "~0.7.0", 
    "toastr": "~2.1.0", 
    "vunit": "~0.2.0", 
    "async": "^1.5.2", 
    "angular-ui-tree": "^2.15.0", 
    "ng-file-upload": "^12.0.4", 
    "ng-img-crop": "ngImgCrop#^0.3.2", 
    "angular-local-storage": "^0.3.0" 
    } 
} 

=========================================== ===

bower bootflat#*         progress remote: Compressing objects: 100% (27/27), done. 
bower bootflat#*         resolved https://github.com/flathemes/bootflat.git#affdd96590 
bower bootstrap#~3.3.6       install bootstrap#3.3.7 
bower           postinstall gulp wiredep 
bower           postinstall [23:03:25] 
bower           postinstall Using gulpfile E:\Apps\xampp\htdocs\web-module\gulpfile.js 
bower           postinstall [23:03:25] 
bower           postinstall Starting 'wiredep'... 
bower           postinstall [23:03:25] Wire bower css, js and our app js into html 
bower           postinstall [23:03:25] 
bower           postinstall gulp-inject 49 files into index.html. 
bower           postinstall [23:03:25] Finished 'wiredep' after 401 ms 

bootstrap#3.3.7 bower_components\bootstrap 
└── jquery#2.1.4 

또한 "NPM 설치"후 나는,이 라인을 얻을 수는 단지 warning.something가 운영 체제에 대한라고하지만 나는 그것에 대해 혼란 스러워요. 은 'darwin'을 요구했지만 현재 'win32'는입니다. 그게 문제 야.

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules\chokidar\node_modules\fsevents): 
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 
npm WARN [email protected] requires a peer of [email protected] but none was installed. 

답변

0

는 보통 몇 가지 구성 요소 요구 사항이 충족되지 않는 것을 의미한다. 예를 들어, 각도 모의 버전은 1.3.8이며, 각도 1.3.8에 대한 종속성이 있습니다. 같은 뭔가 변화를 시도 :

"angular-mocks" : "1.4.8" 

편집 :

OS X의 FSEvents API는 응용 프로그램이 특정 디렉토리로 변경 알림을 등록 할 수 있습니다 :

페이지 fsevents에서 나무. Windows를 실행하는 경우

는 그래서는 적용되지 않습니다. 당신이 어떤 통지없이 실행하려면 다음과 같이 소프트웨어 구성 요소 버전을 선택하는 프롬프트를 제공하지 않습니다

npm install --no-optional 

bower 경우 bower 당신을 위해 자동으로 선택할 수 있습니다 의미합니다. 걱정할 것이 없습니다.

+0

나는이 작업을 시도했지만이 문제를 해결하는 데 도움이되지 못했습니다. 어쨌든 다시 모든 노드 및 bower 파일을 삭제하고 nodejs를 다시 설치하고 npm install을 실행했지만 새로운 오류가 발생했습니다. 내 게시물을 편집하여 오류의 일부를 추가했습니다. 제발 좀 제안 해주세요. – Mislam

+0

여보세요 Zamrony, 나는 너의 방법을 다시 시도했다, 지금 나는 그것을 해결한다. 도움 주셔서 대단히 감사합니다. 하지만 혼란 스럽습니다. 이번에는 바우어 업데이트를 실행 했으므로 끝에 각도 버전을 선택하지 않았습니다. 결과를 첨부했습니다. – Mislam