我正在尝试使用Bower将jQuery-QueryBuilder包含到我的项目中,
bower install-保存jQuery-QueryBuilder
已经安装了该软件包,但是当我运行brunch watch
时,出现此错误:
/home/sgarant/Project/node_modules/read-components/index.js:232
throw new Error('Dependency "' + depName + '" is not present in the list of deps [' + names + ']. Specify correct dependency in ' + type + '.json or contact package author.');
^
Error: Dependency "doT" is not present in the list of deps [angular, angular-route, angular-resource, jquery, rickshaw, d3, angular-ui-grid, angular-translate, angular-translate-loader-static-files, js-quantities, angular-filter, underscore, angular-loading-bar, angular-spinkit, PACE, moment, jquery-extendext, dot, jQuery-QueryBuilder, bootstrap, dot]. Specify correct dependency in bower.json or contact package author.
at /home/sgarant/Project/node_modules/read-components/index.js:232:15
at Array.forEach (native)
at setLevel (/home/sgarant/Project/node_modules/read-components/index.js:212:10)
at Array.forEach (native)
at setSortingLevels (/home/sgarant/Project/node_modules/read-components/index.js:237:12)
at sortPackages (/home/sgarant/Project/node_modules/read-components/index.js:243:10)
at /home/sgarant/Project/node_modules/read-components/index.js:274:20
at /home/sgarant/Project/node_modules/read-components/index.js:186:9
at /home/sgarant/Project/node_modules/async-each/index.js:24:44
at /home/sgarant/Project/node_modules/read-components/index.js:140:7
at /home/sgarant/Project/node_modules/read-components/index.js:87:7
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:447:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Project@1.6.0-SNAPSHOT start: `brunch watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Project@1.6.0-SNAPSHOT start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/sgarant/.npm/_logs/2018-12-03T14_30_13_543Z-debug.log
由于我要使用Brunch来构建项目,所以必须通过Bower安装它。
我尝试仅安装依赖项,下载lib,进行构建,然后将dist /文件夹的内容放置在vendor /文件夹中,以便早午餐可以对其进行编译,但是随后出现此错误$(...).queryBuilder is not a function
谢谢您的帮助