Another NPM issue when trying to install vue-quill

Simple install [Vue-quill)(https://github.com/CroudSupport/vue-quill) with:

npm install --save vue-quill

I get this error:

ERROR in ./~/cheerio/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./package in /Users/martin/Desktop/www-cms/node_modules/cheerio
 @ ./~/cheerio/index.js 11:18-38

Solution

Edit build/webpack.dev.conf.js and add:

 plugins: [
        new webpack.NormalModuleReplacementPlugin(/^\.\/package$/, function(result) {
                if(/cheerio/.test(result.context)) {
                        result.request = "./package.json"
                }
        }),

Thanks