Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

throw er; // Unhandled 'error' event On MAC OS #12

Closed
hkamel opened this issue May 9, 2017 · 6 comments
Closed

throw er; // Unhandled 'error' event On MAC OS #12

hkamel opened this issue May 9, 2017 · 6 comments
Labels

Comments

@hkamel
Copy link
Contributor

hkamel commented May 9, 2017

On macOS
Trying to generate a build/release task using the generator version v.1.0.33 getting the above mentioned error.

screenshot

Here is the full trace

events.js:163
throw er; // Unhandled 'error' event
^

Error: ENOENT: no such file or directory, uv_chdir
at process.chdir (/usr/local/lib/node_modules/yo/node_modules/graceful-fs/polyfills.js:21:9)
at process.chdir (/usr/local/lib/node_modules/generator-team-services-extension/node_modules/graceful-fs/polyfills.js:21:9)
at child.install (/usr/local/lib/node_modules/generator-team-services-extension/generators/taskitem/index.js:254:12)
at Object. (/usr/local/lib/node_modules/generator-team-services-extension/node_modules/yeoman-generator/lib/base.js:431:23)
at /usr/local/lib/node_modules/generator-team-services-extension/node_modules/run-async/index.js:25:25
at /usr/local/lib/node_modules/generator-team-services-extension/node_modules/run-async/index.js:24:19
at /usr/local/lib/node_modules/generator-team-services-extension/node_modules/yeoman-generator/lib/base.js:432:9
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
hkamels-MBP:~ hkamel$

@hkamel hkamel added the bug label May 9, 2017
@mikaelkrief
Copy link
Contributor

Hi
What is your NodeJs and npm version ?

@hkamel
Copy link
Contributor Author

hkamel commented May 9, 2017

npm 4.2.0

NodeJs 7.10.0

@mikaelkrief
Copy link
Contributor

Could you try with LTS (6.10.3) version of nodejs

image

On my side, I will try with 7.10.0 version

Thanks

@mikaelkrief
Copy link
Contributor

working for me with v7.10.0 version.

Could you try to, inside the folder that yeoman had generated your extension, run the command "npm run package" and see the result

@hkamel
Copy link
Contributor Author

hkamel commented May 9, 2017

npm run package runs successfully with no issue and when running the same generator version and node v7.10.0 on Windows it run successfully as well. I believe this is an issue with the generator running on macOS.

I'll do a further testing on macOS and update the thread.

YoWindows

@mikaelkrief mikaelkrief changed the title throw er; // Unhandled 'error' event throw er; // Unhandled 'error' event On MAC OS May 9, 2017
@hkamel
Copy link
Contributor Author

hkamel commented May 12, 2017

I can confirm that the issue is now fixed with v1.0.35 ... Thanks

@hkamel hkamel closed this as completed May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants