SkyeYoung commented on issue #1245:
URL: 
https://github.com/apache/apisix-website/issues/1245#issuecomment-1238338535

   > Then, I ran the command `yarn prepare-data` and it executed perfectly. 
When I run `yarn start:doc` and `yarn start:website`, everything works. But, 
when I run the command `yarn start:blog:en`, I get this error:
   > 
   > 
![start-blog-error](https://user-images.githubusercontent.com/55613637/188601676-121e29fe-51e2-4e59-b6aa-b404e2b1cb49.png)
   
   Sorry to be late. I think I know what the cause of these problems is.
   It's because I was using the command cp -r to copy some files, but this 
command doesn't exist in windows.
   
   > When I run the command `yarn build:preview`, the following error is shown.
   > 
   > 
![image](https://user-images.githubusercontent.com/55613637/188607265-f9d0b4be-4146-4fb7-8833-b458500748a2.png)
   > 
   > I just figured that the script for `yarn buld:preview` is `preview=true 
yarn run build`. However, when I manually type the script `yarn run build 
preview=true`, my build process starts without error. I'll let you know if 
everything works fine after running `yarn serve`. 😊
   
   The reason for this problem is similar. In Windows, the syntax of cmd or 
powershell is not the same as the shell in Linux.
   
   I think this is due to the fact that most of the maintainers of this project 
are developing with Linux or MacOS, which causes these problems.
   
   As a solution, maybe you can try the new development method I added 
https://github.com/apache/apisix-website#getting-started-in-a-dev-container so 
that you can use a Linux-like development experience.
   
   Or, please wait a day or two, these two issues are not that hard to fix and 
I can submit a PR to fix the problems. (But I'm not sure if u'll encounter any 
other problems 😅)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to