Reputation: 11
When I use yarn global install packages ,I will see the error "An unexpected error occurred: "ENOENT: no such file or directory, chmod '/usr/local/opt/nvm/versions/node/v10.15.0/bin/umi'". Now,I use nvm to control my node version.
My system is MacOs 10.15.3 and node version is v10.15.0.
Now,I use nvm to control node version.
yarn global add umi
# show error
yarn global v1.22.4
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
[4/4] π¨ Building fresh packages...
success Installed "[email protected]" with binaries:
- umi
error An unexpected error occurred: "ENOENT: no such file or directory, chmod '/usr/local/opt/nvm/versions/node/v10.15.0/bin/umi'".
info If you think this is a bug, please open a bug report with the information provided in "/Users/jokky/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Upvotes: 0
Views: 1926
Reputation: 11
I solved this problem.
first ,I open the file .yarnrc.
add next line text
prefix "/path/.config/yarn"
this path is your yarn download path
Upvotes: 1