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

Error: ENOENT: no such file or directory #1556

Closed
mrdulin opened this issue May 10, 2016 · 3 comments
Closed

Error: ENOENT: no such file or directory #1556

mrdulin opened this issue May 10, 2016 · 3 comments

Comments

@mrdulin
Copy link

mrdulin commented May 10, 2016

I want to build the bundle files to dist directory
image

but when i run npm run build, the console give me these:

image

Did I do something wrong?

@terinjokes
Copy link
Contributor

Browserify doesn't automatically create the output directory, you'll have to do so yourself before you run the build.

The mkdirp module is a fast way to do this across operating systems. Once included in your dependencies and installed, you can do something like "build": "mkdirp dist && browserify …" in your package.json

@mrdulin
Copy link
Author

mrdulin commented May 10, 2016

@terinjokes
Thanks! It works

@jcpst
Copy link

jcpst commented Aug 24, 2016

Is there a reason this pull request was never reviewed or merged?

It would be very nice if Browserify created the output directory.

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

No branches or pull requests

3 participants