Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

ENOENT error #6

Closed
Manaus opened this issue Nov 24, 2015 · 3 comments
Closed

ENOENT error #6

Manaus opened this issue Nov 24, 2015 · 3 comments

Comments

@Manaus
Copy link

Manaus commented Nov 24, 2015

Hello,
when trying to transpile dart to js I get this error:

events.js:85
throw er; // Unhandled 'error' event
            ^
Error: spawn dart2js ENOENT
  at exports._errnoException (util.js:746:11)
  at Process.ChildProcess._handle.onexit (child_process.js:1046:32)
  at child_process.js:1137:20
  at process._tickCallback (node.js:355:11)

My gulpfile is pretty simple:

gulp.task 'default', ->
    gulp.src files.source
    .pipe watch(files.source)   
    .pipe plumber()
    .pipe dart()
    .pipe gulp.dest files.destin

Thanks for any suggestion

@agudulin
Copy link
Owner

Hi,

Looks like you don't have dartsdk installed. If you use brew try this help: https://www.dartlang.org/downloads/mac.html

Also don't forget to create a directory that you are passing as dest parameter.

@joseluis
Copy link
Contributor

The same happened to me. If you are in Debian, Ubuntu or Mint, and you have already installed the dart package, you will have to manually add /usr/lib/dart/bin to the PATH (source).

e.g. Add this line at the end of your ~/.bashrc

export PATH="$PATH:/usr/lib/dart/bin"

@agudulin
Copy link
Owner

Thank you @joseluis. I am going to update the readme file then.

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

No branches or pull requests

3 participants