Cannot find module xxx appears when cnpm installs appium

Background, my computer MacBook pro M1 chip, brew installed npm, and then installed cnpm through npm, but when installing appium through cnpm, there will always be a cannot find module xxx, and then install xxx again with cnpm, and then install appium and a new one will appear For xxx, I found a lot of methods on the Internet, but there is no way to prescribe the right medicine. In the end, it seemed like a method. I simply specified the Ali image source through npm and installed it. Finally, the installation was successful.

It took several hours, and it is best to install appium successfully, but I still don't know why this is happening. Is there a partner who knows the reason? Guess there is something wrong with appium in the source of cnpm?

おすすめ

転載: blog.csdn.net/abcnull/article/details/129902297