danielgindi / jquery.dropzone

A simple jQuery plugin for creating styleable dropzones for files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to add jquery.dropzone using yarn

imsurinder90 opened this issue · comments

On Terminal while running command
yarn add jquery.dropzone --save-dev

I got following error:

error /path/to/project/web/node_modules/jquery.dropzone: Command failed.
Exit code: 3
Command: sh
Arguments: -c grunt build
Directory: /path/to/project/web/node_modules/jquery.dropzone
Output:
Local Npm module "grunt-webpack" not found. Is it installed?
Local Npm module "grunt-contrib-uglify" not found. Is it installed?
Local Npm module "grunt-header" not found. Is it installed?
Local Npm module "grunt-replace" not found. Is it installed?
Warning: Task "webpack" not found. Use --force to continue.

Do i need to install grunt-webpack and other npm modules listed to install it. I wonder other npm modules doesn't requires so?

These are dependencies for building (devDependencies). With npm they are installed automatically.
I'll look into setting the package.json to not require a build but point to the dist file

Thanks @danielgindi
Please let us know when it gets fixed.