How to open / test the front end project of GitHub under Windows

Time:2021-3-6
Main contents:
This paper introduces how to use NPM to install front-end projects under git / GitHub

This process is only applicable to front-end, JS project

Take acorn for example
github: https://github.com/acornjs/acorn

  1. Confirm installation node.js And NPM
  2. Because of the domestic network problems, the installation is often unsuccessful. Use the agent here:

    1. Open CMD
    2. Enter NPM install – G cnpm — registry=https://registry.npm.taobao.org
  3. Installation project, CMD: cnpm install – G acorn
  4. Continue to enter run test in CMD
  5. At this time, it will be found that the error is due to the lack of support libraryHow to open / test the front end project of GitHub under Windows
  6. At this time, we can install the libraries in turn according to the prompts that are missing. Here, we prompt that “roll up plugin buble” is missing
  7. CMD input: cnpm install — save dev rollup plugin Buble
  8. After the installation is successful, test again and return to step 4
  9. Prompt again that the library rollup is missing
  10. CMD input: cnpm install Rollup
  11. Until the prompt test is passedHow to open / test the front end project of GitHub under Windows
  12. We enter node.js Enter node
  13. Then we can start our testHow to open / test the front end project of GitHub under Windows

Recommended Today

Third party calls wechat payment interface

Step one: preparation 1. Wechat payment interface can only be called if the developer qualification has been authenticated on wechat open platform, so the first thing is to authenticate. It’s very simple, but wechat will charge 300 yuan for audit 2. Set payment directory Login wechat payment merchant platform( pay.weixin.qq . com) — > Product […]