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

npm run pdfでエラー #57

Closed
bati668 opened this issue Mar 1, 2018 · 3 comments
Closed

npm run pdfでエラー #57

bati668 opened this issue Mar 1, 2018 · 3 comments

Comments

@bati668
Copy link

bati668 commented Mar 1, 2018

npm run pdf コマンドを実行したら以下のerrorが出ました。
rubyなどを初めて触るので、どこにエラーがあるのかわからず、ご教授いただきたいです。

コマンド実行手順

rubyをinstall
rbenvをinstall
nmpをinstall
Node.jsをinstall
graphvizをinstall

gem install bundler
git clone [email protected]:TechBooster/C89-FirstStepReVIEW-v2.git
cd C89-FirstStepReVIEW-v2
npm install
npm run pdf
 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'pdf' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prepdf', 'pdf', 'postpdf' ]
5 info lifecycle [email protected]~prepdf: [email protected]
6 info lifecycle [email protected]~pdf: [email protected]
7 verbose lifecycle [email protected]~pdf: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~pdf: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/chibahiroshi/Desktop/C89-FirstStepReVIEW-v2/node_modules/.bin:/Users/chibahiroshi/anaconda3/bin:/Users/chibahiroshi/.kiex/elixirs/elixir-1.3.4/bin:/Users/chibahiroshi/.kiex/bin:/Users/chibahiroshi/.rvm/gems/ruby-2.4.0/bin:/Users/chibahiroshi/.rvm/gems/ruby-2.4.0@global/bin:/Users/chibahiroshi/.rvm/rubies/ruby-2.4.0/bin:/path/to/anaconda/bin:/Users/chibahiroshi/.nodebrew/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/chibahiroshi/.rvm/bin
9 verbose lifecycle [email protected]~pdf: CWD: /Users/chibahiroshi/Desktop/C89-FirstStepReVIEW-v2
10 silly lifecycle [email protected]~pdf: Args: [ '-c', 'grunt pdf' ]
11 silly lifecycle [email protected]~pdf: Returned: code: 6  signal: null
12 info lifecycle [email protected]~pdf: Failed to exec pdf script
13 verbose stack Error: [email protected] pdf: `grunt pdf`
13 verbose stack Exit status 6
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at EventEmitter.emit (events.js:127:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:127:13)
13 verbose stack     at maybeClose (internal/child_process.js:936:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/chibahiroshi/Desktop/C89-FirstStepReVIEW-v2
16 verbose Darwin 16.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "pdf"
18 verbose node v9.7.0
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 6
22 error [email protected] pdf: `grunt pdf`
22 error Exit status 6
23 error Failed at the [email protected] pdf script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 6, true ]

@mstssk
Copy link
Member

mstssk commented Mar 2, 2018

@bati668
npm run html など他のコマンドは成功しますか?
npm run pdf だけが失敗するのであれば、TeXのセットアップがうまく行っていないのかもしれません(Re:VIEWはPDFを作るためにTeXを使用します)。

@bati668
Copy link
Author

bati668 commented Mar 3, 2018

あ、すみません。TeXをダウンロードしてませんでした。
TeXをダウンロードしたら、うまく行きました!
ありがとうございます。
@mstssk

@mhidaka
Copy link
Member

mhidaka commented Mar 3, 2018

Thank you for your work @mstssk
Issueは閉じますね

@mhidaka mhidaka closed this as completed Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants