mjeanroy / bower-npm-resolver

Use npm as a registry for your bower dependencies
MIT License
39 stars 13 forks source link

bower not install dependency #349

Open Hajakutbudeen opened 4 years ago

Hajakutbudeen commented 4 years ago

Hello dear, I am using "bower-npm-resolver" into my project. when i merge my project with my colleague using git. he got error like this.

Screen Shot 2020-07-08 at 3 05 53 PM

its cached and validate but its not install that dependency into bower_components folder. i am using bower v 1.8.8 npm v 6.14.5 trying to install vue-chartjs vue2-datepicker lodash chart.js

mjeanroy commented 4 years ago

Hi @Hajakutbudeen, Can you give me your bower.json file (or at least, the dependencies section), and the .bowerrc file you use?

Hajakutbudeen commented 4 years ago

Dear mjeanroy,

Thanks for your reply,

"description": "Portal App Service Provider",

"dependencies": { "vue": "^2.6.11", "axios": "^0.19.2", "vue-google-maps": "^0.10.8", "jquery": "3.2.1", "datatables": "1.10.16", "bootstrap": "4.3.1", "bootstrap-select": "1.12.4", "datatables.net-buttons-bs4": "^1.4.2", "jquery-knob": "^1.2.13", "moment": "2.23.0", "slimScroll": "jquery-slimScroll#1.3.6", "Waves": "waves#0.7.5", "screenfull": "3.3.1", "store2": "store#^2.10.0", "toastr": "^2.1.3", "bootstrap-material-datetimepicker": "^2.7.1", "lightbox2": "^2.11.1", "vuelidate": "^0.7.5", "js-xlsx": "^0.15.5", "bootstrap-sweetalert": "^1.0.1", "vue-tables-2": "^2.0.15", "vue-strap": "^1.1.40", "sagalbot-vue-select": "latest", "chart.js": "^2.9.3", "lodash": "4.0.0", "vue-i18n": "^8.18.2", "vue-chartjs": "npm:vue-chartjs#3.5.0", "vue2-datepicker": "npm:vue2-datepicker#3.6.0" }, "overrides": { "bootstrap": { "main": [ "dist/js/bootstrap.bundle.min.js", "dist/css/bootstrap.min.css" ] }, "bootstrap-sweetalert": { "main": [ "dist/sweetalert.min.js", "dist/sweetalert.css" ] }, "vue": { "main": { "development": "dist/vue.js", "production": "dist/vue.min.js" } }, "vue-google-maps": { "main": [ "dist/vue-google-maps.js" ] }, "toastr": { "main": [ "toastr.min.css", "toastr.min.js" ] }, "bootstrap-material-design": { "ignore": true }, "bootstrap-material-datetimepicker": { "main": [ "js/bootstrap-material-datetimepicker.js", "css/bootstrap-material-datetimepicker.css" ] }, "lightbox2": { "main": [ "dist/css/lightbox.min.css", "dist/js/lightbox.min.js" ] }, "vuelidate": { "main": [ "dist/vuelidate.min.js", "dist/validators.min.js" ] }, "vue-strap": { "main": [ "../../node_modules/vue-strap/dist/vue-strap.js", "../../node_modules/vue-strap/dist/vue-strap.js.map" ] }, "sagalbot-vue-select": { "main": [ "../../node_modules/vue-select/dist/vue-select.css", "../../node_modules/vue-select/dist/vue-select.js" ] }, "vue2-datepicker": { "main": [ "index.css", "index.js" ] }, "vue-i18n": { "main": [ "dist/vue-i18n.min.js" ] } },

In my bower file like this. And yes I am using .bowerrc its works fine for me but when I add my code into my colleague, its not working for him.. Normally when I run npm run build it will show 3 things with package name, cached, validate, & install. For my colleague showed only cached and validate.!

On Jul 9, 2020, at 10:38 AM, Mickael Jeanroy notifications@github.com wrote:

Hi @Hajakutbudeen https://github.com/Hajakutbudeen, Can you give me your bower.json file (or at least, the dependencies section), and the .bowerrc file you use?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mjeanroy/bower-npm-resolver/issues/349#issuecomment-655959693, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGBFWRG6PQD2H3CC56TNNDR2VXVXANCNFSM4OUQOLTA.

Hajakutbudeen commented 4 years ago

Hi @Hajakutbudeen, Can you give me your bower.json file (or at least, the dependencies section), and the .bowerrc file you use?

dear mjeanroy,

please find the attchment of bower.json file, yes i am using .bowerrc bower.json.zip

i need to install vue-chartsjs & vue2-datepicker. ill install npm package.. when i use like this "vue-chartjs": "npm:vue-chartjs#3.5.0", "vue2-datepicker": "npm:vue2-datepicker#3.6.0"

its works for me, cached, validate and install but after migrate with my colleague using github,

its show not-cached and resolve kindly please help. thank you

mjeanroy commented 4 years ago

Hi @Hajakutbudeen, I just published version 0.11.0, can you test with this version please?