I'm trying to install quill-image-resize-module
via NPM. I have tried these commands npm install --save quill-image-resize-module
, npm install quill-image-resize-module
, npm install -g quill-image-resize-module
.
All of them resulted in the same result. The result is, that the folder quill-image-resize-module
getting created inside node_modules
, then another node_modules
gets created inside quill-image-resize-module
. Inside this new, sub node_modules
, many folders get created, e.g. acorn
, array-uniq
, lodash
.
To sum up the issue, the NPM isn't installing the package, instead he's downloading many packages and putting them in a new folder inside quill-image-resize-module
. Therefore, I'm unable to import the package.
import ImageResize from 'quill-image-resize-module'
This results in an error. The package does exist, but it doesn't have the files. It has another subfolder, and inside it, many other folders.
Log based on Old Pro's answer:
ERROR in ./resources/js/app.js
Module not found: Error: Can't resolve 'quill-image-resize-module' in 'C:\xampp\htdocs\myapp\resources\js'
@ ./resources/js/app.js 112:0-36
@ multi ./resources/js/app.js ./resources/sass/app.scss
Works for me using Node 8.14.0 if I use require
instead of import
. Please post the error you get when you run
node -e 'require("quill-image-resize-module")'
My installation of quill-image-resize-module
has 425 directories under ./node_modules/quill-image-resize-module/node_modules/
and the error I get is about window
being undefined, which is normal for node
but indicates that quill
is expecting to be run in a browser, so your real issue may have nothing to do with the npm install
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With