Agontuk / vue-cropperjs

A Vue wrapper component for cropperjs https://github.com/fengyuanchen/cropperjs
MIT License
937 stars 224 forks source link

vue-cropperjs won't install with Vue 2.1.0 because of rigid peer dependency #22

Closed hawkeye64 closed 7 years ago

hawkeye64 commented 7 years ago
 :~$ npm install --save vue-cropperjs
 /home/myName
 ├── UNMET PEER DEPENDENCY vue@>=2.0.0
 └─┬ vue-cropperjs@2.1.1 
   └── cropperjs@0.8.1 

 npm WARN vue-cropperjs@2.1.1 requires a peer of vue@>=2.0.0 but none was installed.

I have Vue 2.1.0 installed:

"raw": "vue@^2.1.0",

In your package.json can you change this:

   "peerDependencies": {
     "vue": ">=2.0.0"
   },

to this:

   "peerDependencies": {
     "vue": ">=^2.0.0"
   },
hawkeye64 commented 7 years ago

Just close this. It works as expected. I was in the wrong directory. Silly mistake. :(