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 running Yarn due to new node-emoji entry point #2119

Closed
pdhoopr opened this issue Dec 2, 2016 · 6 comments
Closed

Error running Yarn due to new node-emoji entry point #2119

pdhoopr opened this issue Dec 2, 2016 · 6 comments

Comments

@pdhoopr
Copy link

pdhoopr commented Dec 2, 2016

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
I use npm i -g yarn to install and upgrade Yarn. When I ran this command today, then tried to use the Yarn CLI, I received the following error:

...
Error: ENOENT: no such file or directory, open 'GLOBAL_NODE_MODULES_PATH/yarn/node_modules/node-emoji/index.js'
...

It looks like the node-emoji package restructured its entry point in this commit and then released that in version 1.4.2 earlier today. However, Yarn still seems to be looking for index.js.

If the current behavior is a bug, please provide the steps to reproduce.

  1. npm i -g yarn
  2. yarn ...

What is the expected behavior?
Yarn should work as normal, e.g. yarn or yarn install should run without a node-emoji error.

Please mention your node.js, yarn and operating system version.
Node v7.2.0
Yarn v0.17.10
macOS Sierra v10.12.1

@dbashford
Copy link

dbashford commented Dec 2, 2016

Mentioned this in #2072, likely related? (but probably worth tracking separately)

@LasaleFamine
Copy link

LasaleFamine commented Dec 2, 2016

+1 here, same problem just 20 minutes ago.

Node v7.2.0
Yarn v0.17.10
Debian Jessie

@mandragorn
Copy link

mandragorn commented Dec 2, 2016

I'm also getting this across at least 3 machines.
[edited]
Upgrading to yarn 0.17.10 fixed it for me (I also cleared out the yarn cache and reinstalled yarn & node_modules from scratch so those may have also contributed).

@dbashford
Copy link

FWIW, I uninstalled yarn, blew away the yarn cache, blew away the npm cache, reinstalled via npm and it seems to be ok now.

Possibly some sort of yarn cache issue?

@sebmck
Copy link
Contributor

sebmck commented Dec 2, 2016

This is a known issue, I added a cache breaker in #1965 which should be in latest, if it's not then it'll be in the next release. The fix here is to remove the Yarn cache, one of the following commands should work:

# OSX
$ rm -rf ~/Library/Caches/Yarn

# Linux
$ rm -rf ~/.cache/yarn

# Windows
$ del %LOCALAPPDATA%/Yarn/cache

@sebmck sebmck closed this as completed Dec 2, 2016
@pdhoopr
Copy link
Author

pdhoopr commented Dec 2, 2016

Cool, works for me. Thank you!

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

No branches or pull requests

5 participants