question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to build draft-js examples

See original GitHub issue

Trying to build draft-js examples… in Ubuntu 14 with nodev4.2.6 got this error while build

draft-js@0.10.0 build /home/ubuntu/draft-js-0.10-stable gulp

[11:09:11] Using gulpfile ~/draft-js-0.10-stable/gulpfile.js [11:09:11] Starting ‘default’… [11:09:11] Starting ‘check-dependencies’… [11:09:15] ‘check-dependencies’ errored after 3.5 s [11:09:15] Error in plugin ‘check-dependencies’ Message: npm broke [11:09:15] ‘default’ errored after 3.5 s [11:09:15] Error in plugin ‘run-sequence(check-dependencies)’ Error at finish (/home/ubuntu/draft-js-0.10-stable/node_modules/run-sequence/index.js:56:13) at Gulp.onError (/home/ubuntu/draft-js-0.10-stable/node_modules/run-sequence/index.js:67:4) at emitOne (events.js:82:20) at Gulp.emit (events.js:169:7) at Gulp.Orchestrator._emitTaskDone (/home/ubuntu/draft-js-0.10-stable/node_modules/orchestrator/index.js:264:8) at /home/ubuntu/draft-js-0.10-stable/node_modules/orchestrator/index.js:275:23 at finish (/home/ubuntu/draft-js-0.10-stable/node_modules/orchestrator/lib/runTask.js:21:8) at DestroyableTransform.<anonymous> (/home/ubuntu/draft-js-0.10-stable/node_modules/orchestrator/lib/runTask.js:52:4) at DestroyableTransform.f (/home/ubuntu/draft-js-0.10-stable/node_modules/end-of-stream/node_modules/once/once.js:17:25) at emitOne (events.js:82:20)

npm ERR! Linux 3.13.0-106-generic npm ERR! argv “/home/ubuntu/node-v4.2.6-linux-x64/bin/node” “/usr/local/bin/npm” “run” “build” npm ERR! node v4.2.6 npm ERR! npm v4.0.5 npm ERR! code ELIFECYCLE npm ERR! draft-js@0.10.0 build: gulp npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the draft-js@0.10.0 build script ‘gulp’. 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 draft-js package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! gulp npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs draft-js npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls draft-js npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/draft-js-0.10-stable/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:17
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
Yukaiicommented, Jan 24, 2017

Build failed with node version 6.9.1 and npm 4.1.1. Downgrade npm to version 3.10.10 and get working now.

npm install npm@3.10.10 -g

Notice devEngines specified in package.json as follows:

  "devEngines": {
    "node": "4.x || 6.x",
    "npm": "2.x || 3.x"
  },
6reactions
alexeychikkcommented, Dec 11, 2017

I downgrade npm every time I need to build a new version of draft-js. Nice job, FB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues and Pitfalls - Draft.js
This article addresses some known issues with the Draft editor framework, as well as some common pitfalls that we have encountered while ...
Read more >
Can't figure out why draft-js is not shown - Stack Overflow
If you just use the sample code on the official website of Draft.js, you will see nothing on the page. It's just a...
Read more >
Build rich text editors in React using Draft.js and react-draft ...
In this article, we will be using Draft.js and react-draft-wysiwyg to build a rich text editor and display text we created using the...
Read more >
draft-js examples - CodeSandbox
Learn how to use draft-js by viewing and forking example apps that make use of draft-js on CodeSandbox. ... react-form-builder2A complete form builder...
Read more >
Draftail · A configurable rich text editor built with Draft.js
API to build custom controls for links, images, and more. The embeds in this example are powered by ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found