Failed `npm run build`
See original GitHub issueIssue Summary
In the latest version, it fails npm run build
is failed.
Steps to Reproduce
% npm run build
> redash-client@3.0.0 build /Users/katsuhiko.yoshida/work/redash
> rm -rf ./client/dist/ && NODE_ENV=production node node_modules/.bin/webpack
Hash: 7e6ac635b62cc784d7ca
Version: webpack 3.7.1
Time: 61183ms
Asset Size Chunks Chunk Names
img/Roboto-Regular-webfont.da61d7e.svg 73.2 kB [emitted]
fonts/fontawesome-webfont.674f50d.eot 166 kB [emitted]
(Omitted)
WARNING in app.1b87d82037bcd12b2cbe.js from UglifyJs
Dropping unused function moveSourcesRight [./client/app/visualizations/sankey/d3sankey.js:93,11]
ERROR in ./node_modules/angular-ui-bootstrap/index.js
Module not found: Error: Can't resolve './dist/ui-bootstrap-tpls' in '/Users/katsuhiko.yoshida/work/redash/node_modules/angular-ui-bootstrap'
@ ./node_modules/angular-ui-bootstrap/index.js 1:0-35
@ ./client/app/index.js
Child html-webpack-plugin for "multi_org.html":
1 asset
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./client/app/multi_org.html 654 bytes {0} [built]
(Omitted)
npm ERR! Darwin 16.5.0
npm ERR! argv "/Users/katsuhiko.yoshida/.nodebrew/node/v6.11.4/bin/node" "/Users/katsuhiko.yoshida/.nodebrew/current/bin/npm" "run" "build"
npm ERR! node v6.11.4
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! redash-client@3.0.0 build: `rm -rf ./client/dist/ && NODE_ENV=production node node_modules/.bin/webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the redash-client@3.0.0 build script 'rm -rf ./client/dist/ && NODE_ENV=production node node_modules/.bin/webpack'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the redash-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rm -rf ./client/dist/ && NODE_ENV=production node node_modules/.bin/webpack
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redash-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls redash-client
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/katsuhiko.yoshida/work/redash/npm-debug.log
I changed angular-ui-bootstrap
version from "^2.5.0"
to "2.5.0"
in package.json, and rm -fr node_modules/angular-ui-bootstrap/ && npm install
then build sucessfully.
I suspect that angular-ui-bootstrap
2.5.3(latest version) is not good working.
Technical details:
- Redash Version: latest(master)
- Browser/OS: 61.0.3163.100 (Official Build) (64-bit)
- How did you install Redash: Docker Image
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
npm run build - fails to compile despite development version ...
I have a react app created with create-react-app , and npm run build is failing to compile a production build. It throws the...
Read more >`npm run build` is failing on CI but runs fine on local machine
Hey I got really weird problem. I use CRA with TypeScript template. I cannot build my app using npm run build on Github...
Read more >Command failed with exit code 1: npm run build - Support
Hey, I can't figure out why my app wont build on netlify. I tried building it locally it works, was checking for same...
Read more >Error when running npm run build : r/react - Reddit
Error when running npm run build · Delete package-lock.json (not package.json!) and/or yarn. · Delete node_modules in your project folder. · Remove ...
Read more >npm run build command fails - Salesforce Stack Exchange
Windows still has some tweaks necessary, if you look in package.json in the scripts field you'll see the run command, which probably looks ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My npm version was
3.10.10
which not support package-lock.json. So, I updated to5.4.2
. Thanks.@ralfovelgoenne you should try upgrading your npm version first.