vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
768 stars 262 forks source link

How to build a develop environment locally in mac? #4553

Closed yomonah closed 4 years ago

yomonah commented 4 years ago

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:

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!

Danp2 commented 4 years ago

Appears to be a rights issue. Suggest that you review this thread.

julien-f commented 4 years ago

Closing because not an XO issue, feel free to continue discussing this though the forum might be more appropriate :slightly_smiling_face: