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

demo无法启动 #1

Open
AliceLanniste opened this issue Dec 30, 2021 · 3 comments
Open

demo无法启动 #1

AliceLanniste opened this issue Dec 30, 2021 · 3 comments

Comments

@AliceLanniste
Copy link

你好,我是win系统的,我在把rm -rf修改为windows操作后,我 npm install /packagefileUploaderServerfileUploaderClient的依赖,并build。然后在demo文件夹安装clientserver的依赖。但出现如下错误,我安装似乎失败,而且我无法启动demo
微信图片_20211230164459
微信图片_20211230164505

@shadowings-zy
Copy link
Owner

先确认下 /package/fileUploaderServer/dist 和 /package/fileUploaderClient/dist 是否存在。
然后确认下你使用 yarn 安装 client 和 server 的位置,应该在项目根目录安装,而不是 demo 目录安装。

@AliceLanniste
Copy link
Author

AliceLanniste commented Dec 31, 2021

/package/fileUploaderServer/dist 和 /package/fileUploaderClient/dist 存在
8fb9e1c088d05a7a338a6a09213b4b7
76ee7eed6dcd83505a485eb3c410d6a

然后确认下你使用 yarn 安装 client 和 server 的位置,应该在项目根目录安装,而不是 demo 目录安装。

这句话的意思是我直接在根目录使用npm run demo:run吗,不需要在demo目录下安装依赖吗。
我的步骤是先安装demo下server和client依赖,然后npm run demo:run,这样不行吗,必须使用yarn安装和运行吗?
我从头到尾都是使用npm,这样会有影响吗

@shadowings-zy
Copy link
Owner

直接在根目录下 yarn 安装依赖,然后执行 demo: run命令。这个项目使用了yarn workspace,用npm安装是不行的

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

2 participants