-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Description
I'd like to customise the colour scheme of (the rather excellent) ReDoc utility. The only way I can see of doing this is updating the SASS and building locally. However, when I attempt to run npm run build-dist from the ReDoc directory I hit a wall of errors.
> [email protected] build-dist C:\Users\MarkIngram\Documents\GitHub\ReDoc
> npm run build:prod
> [email protected] build:prod C:\Users\MarkIngram\Documents\GitHub\ReDoc
> npm run clean:aot && npm run build:sass && npm run webpack:prod
> [email protected] clean:aot C:\Users\MarkIngram\Documents\GitHub\ReDoc
> npm run rimraf -- .tmp compiled lib/**/*.css
> [email protected] rimraf C:\Users\MarkIngram\Documents\GitHub\ReDoc
> rimraf ".tmp" "compiled" "lib/**/*.css"
> [email protected] build:sass C:\Users\MarkIngram\Documents\GitHub\ReDoc
> node-sass -q -o lib lib
> [email protected] webpack:prod C:\Users\MarkIngram\Documents\GitHub\ReDoc
> webpack --config build/webpack.prod.js --profile --bail
Starting compilation using the angular compiler.
Angular compilation done, starting webpack bundling.
[at-loader] Using [email protected] from typescript and "tsconfig.json" from C:\Users\MarkIngram\Documents\GitHub\ReDoc\tsconfig.webpack.json.
[at-loader] Checking started in a separate process...
[at-loader] Checking finished with 50 errors
Error in bail mode: [at-loader] TS2688: Cannot find type definition file for 'node'.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "webpack:prod"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] webpack:prod: `webpack --config build/webpack.prod.js --profile --bail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] webpack:prod script 'webpack --config build/webpack.prod.js --profile --bail'.
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 redoc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config build/webpack.prod.js --profile --bail
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redoc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls redoc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\MarkIngram\Documents\GitHub\ReDoc\npm-debug.log
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build:prod"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build:prod: `npm run clean:aot && npm run build:sass && npm run webpack:prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:prod script 'npm run clean:aot && npm run build:sass && npm run webpack:prod'.
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 redoc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run clean:aot && npm run build:sass && npm run webpack:prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redoc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls redoc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\MarkIngram\Documents\GitHub\ReDoc\npm-debug.log
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build-dist"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build-dist: `npm run build:prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-dist script 'npm run build:prod'.
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 redoc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redoc
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls redoc
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\MarkIngram\Documents\GitHub\ReDoc\npm-debug.log`
Additionally, the npm-debug.log file that's mentioned is not present. Can you please help me get the build functioning or, alternatively, show me how to best customise the colour scheme another way? Thanks!
FYI: I tried this with node.js v7.4.0 and then again after upgrading to v7.5.0 but no difference.
Metadata
Metadata
Assignees
Labels
No labels