2016-11-25 1 views
-1

Помощь! Я новичок в Cordova, node, grunt, bower и т. Д.ENOTFOUND Пакет ng-cordova не найден

Я пытаюсь импортировать существующее приложение Cordova в Visual Studio 2015. При попытке обновления зависимостей (щелкнув правой кнопкой мыши на узле зависимостей в проводнике проекта, и выбрав «восстановления пакетов») Я получаю это сообщение на выходе:

ENOTFOUND Пакет нг-Cordova не найден

я пошел в командной строке и побежал:

npm install -g ng-cordova 

Результат был:

npm WARN deprecated [email protected]: Please update conventional-changelog to >1.0.0. If you are running the cli, use conventional-changelog-cli 
[email protected] C:\Users\myuser\AppData\Roaming\npm\node_modules\ng-cordova 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected], [email protected]) 
└── [email protected] ([email protected], [email protected], [email protected], [email protected]) 

ли эту работу?

Я побежал:

bower install 

Тем не менее получил сообщение:

ENOTFOUND Пакет нг-Cordova не найден

Вот полный выход:

bower      invalid-meta bower      invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes 
bower font-awesome#~4.3.0 not-cached https://github.com/FortAwesome/Font-Awesome.git#~4.3.0 
bower font-awesome#~4.3.0  resolve https://github.com/FortAwesome/Font-Awesome.git#~4.3.0 
bower parse-js-sdk#~1.4.0  cached https://github.com/albemuth/parse-js-sdk.git#1.4.2 
bower parse-js-sdk#~1.4.0  validate 1.4.2 against https://github.com/albemuth/parse-js-sdk.git#~1.4.0 
bower angular#~1.2    cached https://github.com/angular/bower-angular.git#1.2.32 
bower angular#~1.2   validate 1.2.32 against https://github.com/angular/bower-angular.git#~1.2 
bower bootstrap#~3.2.0   cached https://github.com/twbs/bootstrap.git#3.2.0 
bower bootstrap#~3.2.0  validate 3.2.0 against https://github.com/twbs/bootstrap.git#~3.2.0 
bower angular-cookies#~1.2  cached https://github.com/angular/bower-angular-cookies.git#1.2.32 
bower angular-cookies#~1.2 validate 1.2.32 against https://github.com/angular/bower-angular-cookies.git#~1.2 
bower angular-resource#~1.2  cached https://github.com/angular/bower-angular-resource.git#1.2.32 
bower angular-resource#~1.2 validate 1.2.32 against https://github.com/angular/bower-angular-resource.git#~1.2 
bower angular-mocks#~1.2  cached https://github.com/angular/bower-angular-mocks.git#1.2.32 
bower angular-mocks#~1.2  validate 1.2.32 against https://github.com/angular/bower-angular-mocks.git#~1.2 
bower angular-animate#~1.2  cached https://github.com/angular/bower-angular-animate.git#1.2.32 
bower angular-animate#~1.2 validate 1.2.32 against https://github.com/angular/bower-angular-animate.git#~1.2 
bower angular-bootstrap#~0.10.0 cached https://github.com/angular-ui/bootstrap-bower.git#0.10.0 
bower angular-bootstrap#~0.10.0   validate 0.10.0 against https://github.com/angular-ui/bootstrap-bower.git#~0.10.0 
bower angular-sanitize#~1.2    cached https://github.com/angular/bower-angular-sanitize.git#1.2.32 
bower angular-sanitize#~1.2    validate 1.2.32 against https://github.com/angular/bower-angular-sanitize.git#~1.2 
bower angular-touch#~1.2     cached https://github.com/angular/bower-angular-touch.git#1.2.32 
bower angular-touch#~1.2    validate 1.2.32 against https://github.com/angular/bower-angular-touch.git#~1.2 
bower angular-ui-router#~0.2.10   cached https://github.com/angular-ui/angular-ui-router-bower.git#0.2.18 
bower angular-ui-router#~0.2.10   validate 0.2.18 against https://github.com/angular-ui/angular-ui-router-bower.git#~0.2.10 
bower moment#~2.10.2      cached https://github.com/moment/moment.git#2.10.6 
bower moment#~2.10.2     validate 2.10.6 against https://github.com/moment/moment.git#~2.10.2 
bower angular-ui-utils#~0.1.1    cached https://github.com/angular-ui/ui-utils.git#0.1.1 
bower angular-ui-utils#~0.1.1   validate 0.1.1 against https://github.com/angular-ui/ui-utils.git#~0.1.1 
bower font-awesome#~4.3.0    download https://github.com/FortAwesome/Font-Awesome/archive/v4.3.0.tar.gz 
bower font-awesome#~4.3.0    extract archive.tar.gz 
bower ng-cordova#~0.0.3    **ENOTFOUND Package ng-cordova not found** 

Затем я попытался не устанавливать ngcordova (без дефиса):

bower install ngcordova 

Выход еще есть:

становой нг-Cordova # ~ 0.0.3 ENOTFOUND Пакет нг-Cordova не найден

Любая помощь будет принята с благодарностью. Спасибо!

+0

я установил нг-Cordova снова --save так он обновил package.json. bower все еще не может его найти, и я не понимаю, почему: bower ng-cordova #^0.1.27-alpha ENOTFOUND Пакет ng-cordova не найден – BrianK

ответ

1

Первая команда только отозвалась о предупреждении о другом пакете (устаревшее обычное смену изменений 0.0.11), но ng-cordova был успешно установлен с помощью npm. В вашей второй команде вы ошибочно написали имя пакета баннеров, так как это ngCordova, как показано на рисунке on their github page на самом верху. Настоятельно рекомендуется читать readmes. (Может быть причина, почему он называется прочитать меня)

Если пакет не может быть найден НПМ, вы получите сообщение об ошибке, как

$ npm i lkjsadflkjjlksdf 

npm ERR! Linux 4.4.0-42-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i" "lkjsadflkjjlksdf" 
npm ERR! node v4.6.2 
npm ERR! npm v2.15.11 
npm ERR! code E404 

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/lkjsadflkjjlksdf 
npm ERR! 404 
npm ERR! 404 'lkjsadflkjjlksdf' is not in the npm registry. 
npm ERR! 404 You should bug the author to publish it (or use the name yourself!) 
npm ERR! 404 
npm ERR! 404 Note that you can also install from a 
npm ERR! 404 tarball, folder, http url, or git url. 
+0

Я отредактировал bower.json и изменил название пакета на "ngCordova" беседа идет сейчас. Спасибо за помощь! – BrianK

Смежные вопросы