Vee-validate: npm ERR! bootstrap-sass

Created on 31 Oct 2016  ยท  7Comments  ยท  Source: logaretm/vee-validate

Not able to install this package.


npm ERR! Linux 3.19.0-25-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "vee-validate@next" "--save"
npm ERR! node v5.7.0
npm ERR! npm  v3.6.0

npm ERR! Cannot read property 'bootstrap-sass' of undefined
โ” question

All 7 comments

Its probably not related to the plugin, can you include the package.json file here?

@logaretm sure

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-echo": "^1.0.1",
    "laravel-elixir": "^6.0.0-11",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack-official": "^1.0.2",
    "moment": "^2.15",
    "pusher-js": "^3.2.1",
    "vue": "^2.0.3",
    "vue-multiselect": "next",
    "vue-resource": "^1.0.3",
    "vue-router": "^2.0.1",
    "vuex": "^2.0.0"
  },
  "dependencies": {
    "vee-validate": "^2.0.0-beta.13"
  }
}

Its definitively not related to the plugin, I just installed all those dependencies without issues, try to remove bootstrap-sass from package.json and try again.

@logaretm true, the issue does not happen when just adding dependency manually and running npm install. It only happens when running npm install vee-validate@next --save.
Anyway thank you for the quick response.

I also found another issue with validating the password. When using the rule confirmed and attributes data-as. The confirmed field error message does not recognize data-as attribute of primary field. So the error message looks something like:

The Password Confirmation does not match the form.password.
expected:
The Password Confirmation does not match the Password.

Please let me know if I'm doing something wrong and thank you for this cool package!

OK I will look into the install problem again.

As for the confirmed rule it has been reported before in #46 and was fixed but not tagged yet. But I guess I will improve it to support data-as on the target field thanks for the feedback.

Thank you for your support and feedback.

@logaretm, may you please explain me the difference between two "npm install" commands: with "vee-validate@next" and just "vee-validate"? I tried both - the first installed vee-validate version 2.0.0-beta.17, while the second installed version 2.0.0-beta.18. So which one should I use?

@brunen9 @next has been deprecated since the main version is 2.x since beta.18 on wards.

Vue 1.0 version is being referenced under the prev tag. Sorry about the confusion.

To install latest version : npm install vee-validate

to install Vue 1.0 version: npm install vee-validate@prev

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Etheryte picture Etheryte  ยท  3Comments

7immer picture 7immer  ยท  3Comments

schel4ok picture schel4ok  ยท  3Comments

Shchepotin picture Shchepotin  ยท  3Comments

Hoagiex picture Hoagiex  ยท  3Comments