l want to build a develop environment locally in my macbook.
Current behavior
when l use "yarn dev" command, it run failed and report some errors as follows:
duyaoyaodeMacBook-Pro:xen-orchestra mia$ yarn dev
yarn run v1.17.3
error An unexpected error occurred: "EACCES: permission denied, scandir '/Users/mia/.config/yarn/link'".
info If you think this is a bug, please open a bug report with the information provided in "/Users/mia/Documents/开发/xen-orchestra/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
if l use "sudo yarn dev, the errors as follow:
duyaoyaodeMacBook-Pro:xen-orchestra mia$ sudo yarn run dev
yarn run v1.17.3
error Couldn't find a package.json file in "/Users/mia/Documents/开发/xen-orchestra"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
duyaoyaodeMacBook-Pro:xen-orchestra mia$ sudo yarn run test
yarn run v1.17.3
error Couldn't find a package.json file in "/Users/mia/Documents/开发/xen-orchestra"
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
l don't know why couldn't find a package.json, it clearly exists.
l have no idea how to resolve this problem, please give me some advice as soon as possible, thanks a lot!
Context
Expected behavior
l want to build a develop environment locally in my macbook.
Current behavior
when l use "yarn dev" command, it run failed and report some errors as follows:
if l use "sudo yarn dev, the errors as follow:
l don't know why couldn't find a package.json, it clearly exists.
l have no idea how to resolve this problem, please give me some advice as soon as possible, thanks a lot!