Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurs when preview quit #16

Open
akabekobeko opened this issue Sep 10, 2019 · 4 comments
Open

An error occurs when preview quit #16

akabekobeko opened this issue Sep 10, 2019 · 4 comments
Labels

Comments

@akabekobeko
Copy link
Member

akabekobeko commented Sep 10, 2019

An error always occurs when vivliostyle-savepdf is executed in preview mode and quit with control + C.

savepdf --book --preview dist/

Launching source server... http://localhost:13000
Launching broker server... http://localhost:13001
Opening preview page... http://localhost:13001/broker/index.html?render=http%3A%2F%2F127.0.0.1%3A13000%2Findex.html&loadMode=book
(node:36769) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
^Cnpm ERR! code ELIFECYCLE
npm ERR! errno 130
npm ERR! [email protected] preview: `savepdf --book --preview dist/`
npm ERR! Exit status 130
npm ERR!
npm ERR! Failed at the [email protected] preview 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!     .../.npm/_logs/2019-09-10T12_35_27_011Z-debug.log

Environment

  • macOS Mojave 10.14.6
  • Chrome 76.0.3809.132(Official Build)
  • vivliostyle 2019.8.101
  • vivliostyle-savepdf 1.3.1

Note

vivlio-savepdf is run from npm-scripts.

{
  "scripts": {
    "preview": "savepdf --book --preview dist/"
  }
}

I checked that this problem occurred in env-create-book.

@akabekobeko
Copy link
Member Author

Logs:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/Cellar/node/12.6.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'preview'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preview' ]
5 info lifecycle [email protected]~preview: [email protected]
6 verbose lifecycle [email protected]~preview: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~preview: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/akabeko/Documents/dev/env-create-book/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
8 verbose lifecycle [email protected]~preview: CWD: /Users/akabeko/Documents/dev/env-create-book
9 silly lifecycle [email protected]~preview: Args: [ '-c', 'savepdf --book --preview dist/' ]
10 silly lifecycle [email protected]~preview: Returned: code: 130  signal: null
11 info lifecycle [email protected]~preview: Failed to exec preview script
12 verbose stack Error: [email protected] preview: `savepdf --book --preview dist/`
12 verbose stack Exit status 130
12 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack     at EventEmitter.emit (events.js:203:13)
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack     at ChildProcess.emit (events.js:203:13)
12 verbose stack     at maybeClose (internal/child_process.js:1021:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
13 verbose pkgid [email protected]
14 verbose cwd /Users/akabeko/Documents/dev/env-create-book
15 verbose Darwin 18.7.0
16 verbose argv "/usr/local/Cellar/node/12.6.0/bin/node" "/usr/local/bin/npm" "run" "preview"
17 verbose node v12.6.0
18 verbose npm  v6.11.2
19 error code ELIFECYCLE
20 error errno 130
21 error [email protected] preview: `savepdf --book --preview dist/`
21 error Exit status 130
22 error Failed at the [email protected] preview script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 130, true ]

@akabekobeko akabekobeko changed the title An error occurs when preview ends An error occurs when preview quit Sep 10, 2019
@uetchy
Copy link
Member

uetchy commented Jan 24, 2020

Is this still happening?

@akabekobeko
Copy link
Member Author

akabekobeko commented Jan 27, 2020

@uetchy env-create-book soon migrate to vivliostyle-cli and re-verify (test).

@akabekobeko
Copy link
Member Author

The problem also occurs with vivliostyle-cli.

Environment Version
macOS Catalina
Chrome 79.0.3945.130(Official Build)
@vivliostyle/cli 2.0.0-pre.1

@vivliostyle/core is not installed. Since it is not included in the setup procedure of @vivliostyle/cli and peerDependencies is undefined, dependencies of @vivliostyle/cli itself should be referenced.

CLI log

$ npm run preview

> [email protected] preview /Users/akabeko/Documents/dev/env-create-book
> vivliostyle preview dist/ --book

Launching source server... http://localhost:13000
Launching broker server... http://localhost:13001
Opening preview page... http://localhost:13001/broker/index.html?render=http%3A%2F%2F127.0.0.1%3A13000%2Findex.html&loadMode=book
^Cnpm ERR! code ELIFECYCLE
npm ERR! errno 130
npm ERR! [email protected] preview: `vivliostyle preview dist/ --book`
npm ERR! Exit status 130
npm ERR!
npm ERR! Failed at the [email protected] preview 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!     /Users/akabeko/.npm/_logs/2020-01-28T01_00_31_624Z-debug.log

debug.log

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/Cellar/node/13.7.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'preview'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preview' ]
5 info lifecycle [email protected]~preview: [email protected]
6 verbose lifecycle [email protected]~preview: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~preview: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/akabeko/Documents/dev/env-create-book/node_modules/.bin:/Users/akabeko/gc-sdk/google-cloud-sdk/bin:/Users/akabeko/.anyenv/bin:/Users/akabeko/.cargo/bin:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/sbin:/Users/akabeko/.gem/ruby/2.0.0/bin:/Users/akabeko/Library/Android/sdk/platform-tools
8 verbose lifecycle [email protected]~preview: CWD: /Users/akabeko/Documents/dev/env-create-book
9 silly lifecycle [email protected]~preview: Args: [ '-c', 'vivliostyle preview dist/ --book' ]
10 silly lifecycle [email protected]~preview: Returned: code: 130  signal: null
11 info lifecycle [email protected]~preview: Failed to exec preview script
12 verbose stack Error: [email protected] preview: `vivliostyle preview dist/ --book`
12 verbose stack Exit status 130
12 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack     at EventEmitter.emit (events.js:321:20)
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack     at ChildProcess.emit (events.js:321:20)
12 verbose stack     at maybeClose (internal/child_process.js:1026:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
13 verbose pkgid [email protected]
14 verbose cwd /Users/akabeko/Documents/dev/env-create-book
15 verbose Darwin 19.2.0
16 verbose argv "/usr/local/Cellar/node/13.7.0/bin/node" "/usr/local/bin/npm" "run" "preview"
17 verbose node v13.7.0
18 verbose npm  v6.13.6
19 error code ELIFECYCLE
20 error errno 130
21 error [email protected] preview: `vivliostyle preview dist/ --book`
21 error Exit status 130
22 error Failed at the [email protected] preview script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 130, true ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants