From 8f1c8076878058a56c304cbda7b2bf6d8a032f7f Mon Sep 17 00:00:00 2001 From: Jek Date: Tue, 8 Nov 2016 12:34:13 +0800 Subject: [PATCH] solution to bower error Using Bower v1.5.2 to run bower install will get error: `The "main" field cannot contain minified files` A solution is to regress to version 1.3.12 --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4f82f5..4c4173f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ Install: 2. Run `npm install`. npm will look at `package.json` and automatically install the necessary dependencies. 3. Run `bower install`, which installs front-end packages defined in `bower.json`. +Notice: If you use Bower v1.5.2, you will get error: `The "main" field cannot contain minified files` +You can regress to version 1.3.12 + +1. `npm uninstall bower -g` +2. `npm install -g bower@1.3.12` + Build: - `npm run build` @@ -54,4 +60,4 @@ Build: When build completed, you'll have the following files: - **build/jquery.datetimepicker.full.js** - browser file - **build/jquery.datetimepicker.full.min.js** - browser minified file -- **build/jquery.datetimepicker.min.js** - amd module style minified file \ No newline at end of file +- **build/jquery.datetimepicker.min.js** - amd module style minified file