json-schema-viewer icon indicating copy to clipboard operation
json-schema-viewer copied to clipboard

Cannot get it started, when hosting it I receive error: Cannot GET /prod/0.3.4/20180725/1/

Open enricoribelli opened this issue 7 years ago • 2 comments

What I did is:

npm -g install bower
bower install
npm install

Then I tried to build it with grunt dev but it complained I didn't have sass and ruby installed. So I did:

npm -g install sass
npm -g install ruby 

I tried again with grunt dev and in the console I had the error:

Running "env:dev" (env) task

Running "sass:dev" (sass) task
Could not find an option named "cache".

Usage: sass <input.scss> [output.css]
       sass <input.scss>:<output.css> <input/>:<output/>

=== Input and Output ===================
    --[no-]stdin               Read the stylesheet from stdin.
    --[no-]indented            Use the indented syntax for input from stdin.
-I, --load-path=<PATH>         A path to use when resolving imports.
                               May be passed multiple times.

-s, --style=<NAME>             Output style.
                               [expanded (default), compressed]

    --update                   Only compile out-of-date stylesheets.

=== Source Maps ========================
    --[no-]source-map          Whether to generate source maps.
                               (defaults to on)

    --source-map-urls          How to link from source maps to source files.
                               [relative (default), absolute]

    --[no-]embed-sources       Embed source file contents in source maps.
    --[no-]embed-source-map    Embed source map contents in CSS.

=== Other ==============================
    --watch                    Watch stylesheets and recompile when they change.
    --[no-]poll                Manually check for changes rather than using a native watcher.
                               Only valid with --watch.

    --[no-]stop-on-error       Don't compile more files once an error is encountered.
-i, --interactive              Run an interactive SassScript shell.
-c, --[no-]color               Whether to emit terminal colors.
-q, --[no-]quiet               Don't print warnings.
    --[no-]trace               Print full Dart stack traces for exceptions.
-h, --help                     Print this usage information.
    --version                  Print the version of Dart Sass.
Warning: Exited with error code 64 Use --force to continue.

Aborted due to warnings.

Finally I tried grunt dev --force and it says:

Running "env:dev" (env) task

Running "sass:dev" (sass) task
Could not find an option named "cache".

Usage: sass <input.scss> [output.css]
       sass <input.scss>:<output.css> <input/>:<output/>

=== Input and Output ===================
    --[no-]stdin               Read the stylesheet from stdin.
    --[no-]indented            Use the indented syntax for input from stdin.
-I, --load-path=<PATH>         A path to use when resolving imports.
                               May be passed multiple times.

-s, --style=<NAME>             Output style.
                               [expanded (default), compressed]

    --update                   Only compile out-of-date stylesheets.

=== Source Maps ========================
    --[no-]source-map          Whether to generate source maps.
                               (defaults to on)

    --source-map-urls          How to link from source maps to source files.
                               [relative (default), absolute]

    --[no-]embed-sources       Embed source file contents in source maps.
    --[no-]embed-source-map    Embed source map contents in CSS.

=== Other ==============================
    --watch                    Watch stylesheets and recompile when they change.
    --[no-]poll                Manually check for changes rather than using a native watcher.
                               Only valid with --watch.

    --[no-]stop-on-error       Don't compile more files once an error is encountered.
-i, --interactive              Run an interactive SassScript shell.
-c, --[no-]color               Whether to emit terminal colors.
-q, --[no-]quiet               Don't print warnings.
    --[no-]trace               Print full Dart stack traces for exceptions.
-h, --help                     Print this usage information.
    --version                  Print the version of Dart Sass.
Warning: Exited with error code 64 Used --force, continuing.

Running "preprocess:dev" (preprocess) task

Done, but with warnings.

At last I tried to host it with: grunt connect:server:keepalive and then when I go to http://localhost:9001 it says Cannot GET /prod/0.3.4/20180725/1/ . How can I solve this? Thanks!

enricoribelli avatar Jul 25 '18 15:07 enricoribelli

I also stumbled over this one. You have to install ruby and the sass gem (e.g. apt-get install ruby && gem install sass). Using --force just skips the sass building and leads to an incomplete build.

(and yes answering this is a bit necrophilic, I know, I know)

mriedmann avatar Nov 12 '20 17:11 mriedmann

@mriedmann I actually even forgot what I was trying to do up then haha

enricoribelli avatar Nov 12 '20 17:11 enricoribelli