superset icon indicating copy to clipboard operation
superset copied to clipboard

npm run prod ERROR:

Open Kikiero opened this issue 10 years ago • 2 comments

ERROR in ./javascripts/caravel-select2.js Module not found: Error: Cannot resolve 'file' or 'directory' ../node_modules/jquery-ui/themes/base/jquery-ui.css in $SOFTHOME/caravel_install/caravel/caravel/assets/javascripts @ ./javascripts/caravel-select2.js 5:0-62

What shall I do?

Kikiero avatar Aug 12 '16 09:08 Kikiero

解决: 1、 vi caravel/assets/package.json

"jquery-ui": "^1.10.5", -> "jquery-ui": "1.10.5",

2、To install third party libraries defined in package.json, run the following within the caravel/assets/ directory which will install them in a new node_modules/ folder within assets/.

npm install

3、To parse and generate bundled files for caravel, run either of the following commands. The dev flag will keep the npm script running and re-run it upon any changes within the assets directory.

npm run prod

done!!!! :)

Kikiero avatar Aug 12 '16 10:08 Kikiero

@PickLiDan It's already fixed in master.

xrmx avatar Aug 12 '16 14:08 xrmx