Pancakeswap front-end source compilation - Windows

toString 2021-10-14 02:27:33
pancakeswap front-end end source compilation


One 、nodejs install

1.1 Installation environment

The computer :win 10 64 position

nodejs:node-v12.20.0-x64

nodejs Download the official website : nodejs Official website . Or select the version to download :https://nodejs.org/download/release/v12.20.0/node-v12.20.0-x64.msi

Click the selected icon to download to the local computer .

1.2 Start installation

1、 Put the installation package in the designated location of your computer , Double click execute

2、 Click next

3、 Click next after checking

4、 Click on the change Button , Change to your designated installation position , Click next , Of course, it's OK not to change the default location .

5、 Click next by default

explain :

1、Node.js runtime Represents the operating environment

2、npm package manager Express npm Package manager

3、online documentation shortcuts Online document shortcuts

4、Add to PATH Add to environment variables

6、 We can leave this step unchecked , Go straight to the next step .

7、 Click our Install button

8、 After a while, the installation success button will appear , Let's click finish , It means that the installation is successful !

1.3 Verify the installation

Node.js Installation completed , You can start with a simple test to see if the installation is successful .

1、 Press on the keyboard 【win+R】 key , Input cmd, And then go back , Open the command line interface

2、 Enter the command prompt window , Input the following commands respectively , Display version number , Installation succeeded , Pictured .

node -v Show installed nodejs edition npm -v Show installed npm edition 

notes : This is explained below : New version of the Node.js I have brought with me npm, install Node.js Will be installed together ,npm The function of is to Node.js Dependent packages for management , It can also be understood as being used to install / uninstall Node.js What needs to be packed .

1.4 Use nodejs install yarn

1、 stay cmd Use the command in the window to install the dependency management tool yarn

npm install -g yarn

2、 see yarn Version number

yarn --version

Two 、pancakeswap Front end source code compilation

2.1 yarn Installation dependency

1、 Enter the source directory

2、git initialization

3、 perform yarn Installation dependency

2.2 Build the project

1、 modify packge.json file build Parameters

 take packge.json In your file "build": "CI=false react-scripts build", It is amended as follows "build": "react-scripts build",

2、 Execute the command to build the project

npm run build

3、 Check whether the project is built successfully

3、 ... and 、 Problem solving

3.1 git Can't be found

  • Wrong content :
fatal: not a git repository (or any of the parent directories): .git

  • Error reason :git Can't be found
  • resolvent : Initialize in the source folder path git
git init

3.2 Project construction error

  • Wrong content :
npm ERR! pancake-frontend@0.1.0 build: `CI=false react-scripts build`

  • resolvent :
 take packge.json In your file "build": "CI=false react-scripts build", It is amended as follows "build": "react-scripts build",

版权声明
本文为[toString]所创,转载请带上原文链接,感谢
https://qdmana.com/2021/10/20211002145721851w.html

  1. 初学者怎么学Web前端?
  2. react
  3. PaddlePaddle:在 Serverless 架构上十几行代码实现 OCR 能力
  4. JavaScript数组 几个常用方法
  5. Angular 依赖注入 - 全面解析
  6. html_day02
  7. 那些年我们前端面试中经常被问到的题!
  8. The starting price of Ducati multistada V2 in North America is less than 100000 yuan
  9. Hls.js 使用文檔
  10. Hls.js travailler avec des documents
  11. Problèmes liés à la précision JS
  12. Copie une partie des propriétés d'un objet à un autre objet
  13. Multiplexage de modules en vuex
  14. Développement multilingue Android, questions d'entrevue pour le développement de logiciels Android
  15. Chen lushai and her best friend Wang Meng play video, fearless of the pressure of public opinion, and in a good mood to dance in a bare back
  16. # Sass速通(四):继承、混合与函数
  17. Vidéo de développement de combat Android, questions d'entrevue rxjava
  18. Bugatti Chiron maintenance cost exposure! One piece for one car, burn money endlessly
  19. android应用开发基础答案,深入理解Nginx
  20. 做了三年前端,你才知道10分钟就能实现一个PC版魔方游戏
  21. Html + CSS + JS implémentation ️ Responsive Lucky Turnover ️ [with full source Sharing]
  22. Ren Jialun, who married young, was in a mess. Now she feels that it is a blessing in disguise
  23. 达梦数据库使用disql生成html格式的巡检报告
  24. React render phase parsing II - beginwork process
  25. Tableau linéaire de la structure des données (dessin à la main)
  26. In 2022, what are the highlights and popular elements in skirts to make skirts more elegant and gentle?
  27. JQuery installation
  28. Exemple de développement Android, dernière compilation de questions d'entrevue Android
  29. Differences and relations between JDK, JRE and JVM, nginx architecture diagram
  30. 【Azure 云服务】Azure Cloud Service 为 Web Role(IIS Host)增加自定义字段 (把HTTP Request Header中的User-Agent字段增加到IIS输出日志中)
  31. 【Azure 云服务】Azure Cloud Service 为 Web Role(IIS Host)增加自定义字段 (把HTTP Request Header中的User-Agent字段增加到IIS输出日志中)
  32. Questions d'entrevue pour les ingénieurs en développement Android, Android Foundation 72 questions
  33. It's kind of Cadillac CT6 to have a Mercedes Benz S-class captain and a 10At entry-level configuration, falling to less than 300000
  34. H6 meets the strong enemy again! The car body has a Cayenne visual sense, breaking 8.8 seconds, and the top configuration is less than 130000
  35. How nginx supports HTTPS and Linux kernel video tutorial
  36. Le martyr se réjouit de sa vieillesse Audi R8 V10 performance Rwd
  37. import 方式隨意互轉,感受 babel 插件的威力
  38. Le mode d'importation peut se déplacer librement pour sentir la puissance du plug - in Babel
  39. Pas de héros en termes de ventes!Du point de vue de la force du produit, la nouvelle version ax7 Mach est plus forte que H6
  40. The vue3 + TS project introduces vant as needed
  41. 深入浅出虚拟 DOM 和 Diff 算法,及 Vue2 与 Vue3 中的区别
  42. 深入淺出虛擬 DOM 和 Diff 算法,及 Vue2 與 Vue3 中的區別
  43. Explorer les algorithmes DOM et diff virtuels et les différences entre vue2 et vue3
  44. 两万字Vue基础知识总结,小白零基础入门,跟着路线走,不迷路(建议收藏)
  45. Résumé des connaissances de base de 20 000 mots vue, Introduction à la petite base blanche zéro, suivre la route et ne pas se perdre (Collection recommandée)
  46. 兩萬字Vue基礎知識總結,小白零基礎入門,跟著路線走,不迷路(建議收藏)
  47. "Talk show conference 4" Zhou qimo a remporté le championnat. Tout le monde l'admire. Il est mature et stable et a une vue d'ensemble
  48. Test logiciel entrevue non technique questions classiques - mise à jour continue!
  49. Digital forward disassembly reverse disassembly
  50. Analyse du cache distribué redis et essence de l'entrevue en usine v6.2.6
  51. [Hadoop 3. X series] use of HDFS rest HTTP API (II) httpfs
  52. Zhang Daxian sang in the morning to bless the motherland, xYG team: singing is much better than us
  53. My three years' experience -- avoiding endless internal friction
  54. Introduction à l'algorithme "dénombrement binaire" modéré 01 - - question d'entrevue leetcode 10.09. Recherche de matrice de tri
  55. Introduction à l'algorithme simple 06 - - leetcode 34. Trouver la première et la dernière position d'un élément dans un tableau de tri
  56. CSS animation
  57. Explain the new tags in HTML5 and the pseudo classes and pseudo elements in CSS3
  58. They are all talking about "serverless first", but do you really understand serverless?
  59. [apprentissage de l'algorithme] 1486. Fonctionnement exclusif du tableau (Java / C / C + + / python / go / Rust)
  60. Front and back end data interaction (VI) -- advantages, disadvantages and comparison of Ajax, fetch and Axios