Skip to content

Unable to build locally #200

Closed
Closed
@markingram

Description

@markingram

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.

> redoc@1.8.0 build-dist C:\Users\MarkIngram\Documents\GitHub\ReDoc
> npm run build:prod


> redoc@1.8.0 build:prod C:\Users\MarkIngram\Documents\GitHub\ReDoc
> npm run clean:aot && npm run build:sass && npm run webpack:prod


> redoc@1.8.0 clean:aot C:\Users\MarkIngram\Documents\GitHub\ReDoc
> npm run rimraf -- .tmp compiled lib/**/*.css


> redoc@1.8.0 rimraf C:\Users\MarkIngram\Documents\GitHub\ReDoc
> rimraf ".tmp" "compiled" "lib/**/*.css"


> redoc@1.8.0 build:sass C:\Users\MarkIngram\Documents\GitHub\ReDoc
> node-sass -q -o lib lib


> redoc@1.8.0 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 typescript@2.1.5 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! redoc@1.8.0 webpack:prod: `webpack --config build/webpack.prod.js --profile --bail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the redoc@1.8.0 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! redoc@1.8.0 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 redoc@1.8.0 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! redoc@1.8.0 build-dist: `npm run build:prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the redoc@1.8.0 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions