Проблемы запуска примеров из официальных документов - PullRequest
0 голосов
/ 17 января 2020

Я пытаюсь запустить примеры официальный проект - js репо .

Насколько я могу судить по репо, я думал, что смогу запустить:

git clone <<draft-js-repo>>
sudo npm i

После этого я подумал, что могу просто использовать браузер для go на html страниц. Однако на sudo npm i я получаю сообщение об ошибке:

[13:49:37] Using gulpfile ~/Code/tutorials/draft-js-expl/draft-js/gulpfile.js
[13:49:37] Starting 'default'...
[13:49:37] Starting 'check-dependencies'...
[13:49:37] Starting '<anonymous>'...
[13:49:37] '<anonymous>' errored after 26 ms
[13:49:37] Error: spawn yarn ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
[13:49:37] 'check-dependencies' errored after 27 ms
[13:49:37] 'default' errored after 29 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! draft-js@0.11.4 build: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the draft-js@0.11.4 build 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/florianmartens/.npm/_logs/2020-01-17T12_49_37_841Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! draft-js@0.11.4 prepublish: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the draft-js@0.11.4 prepublish 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/florianmartens/.npm/_logs/2020-01-17T12_49_37_867Z-debug.log
What I am doing wrong. How can I get the examples to work here? Thanks!
...