npm run build fails
See original GitHub issueQ | A |
---|---|
Bug or feature request? | Bug |
Which Swagger/OpenAPI version? | 3.0.0 |
Which Swagger-UI version? | 3.3.1 |
How did you install Swagger-UI? | git clone & git checkout |
Which browser & version? | |
Which operating system? | debian testing on x64 |
I cloned this repo, checked out tag 3.3.1 and ran npm run build
. This is what I got:
> swagger-ui@3.3.1 build /home/user/swagger-ui
> npm run build-core && npm run build-bundle && npm run build-standalone
> swagger-ui@3.3.1 build-core /home/user/swagger-ui
> webpack --config webpack-dist.config.js --colors
/home/user/swagger-ui/webpack-dist.config.js:6
let rules = [
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at requireConfig (/home/user/swagger-ui/node_modules/webpack/bin/convert-argv.js:96:18)
at /home/user/swagger-ui/node_modules/webpack/bin/convert-argv.js:109:17
at Array.forEach (native)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! swagger-ui@3.3.1 build-core: `webpack --config webpack-dist.config.js --colors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swagger-ui@3.3.1 build-core 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/user/.npm/_logs/2017-10-06T20_42_28_836Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! swagger-ui@3.3.1 build: `npm run build-core && npm run build-bundle && npm run build-standalone`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swagger-ui@3.3.1 build 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/user/.npm/_logs/2017-10-06T20_42_28_859Z-debug.log
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (6 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 >Error when running npm run build : r/react - Reddit
I have a react app done and am attempting to learn how to deploy it for the first time. I type npm run...
Read more >npm run build command fails - Salesforce Stack Exchange
x.x/guide/getting-started/ and when I run the npm run build command I get an error "NODE_ENV" is not recognized as an internal or external ......
Read more >superset build failures - npm run build - Google Groups
cd $SUPERSETHOME/superset/assets. npm install # this works fine · npm run build # this step errors out · Error: + 2221 hidden modules...
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 Free
Top 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
Thanks for the very fast reply. I was just coming to update my comment.
You’re using node 4. Notice our build requirements state node 6.