Cov txheej txheem:

Kuv yuav qhib node js hauv Mac hais kom ua kab li cas?
Kuv yuav qhib node js hauv Mac hais kom ua kab li cas?

Video: Kuv yuav qhib node js hauv Mac hais kom ua kab li cas?

Video: Kuv yuav qhib node js hauv Mac hais kom ua kab li cas?
Video: Merging PDFs with Python! 2024, Kaum ib hlis
Anonim

Yuav ua li cas khiav lub Node. js Application ntawm Mac

  1. Qhib Terminal los ntawm nias Hais kom ua + Chaw rau qhib Spotlight Nrhiav thiab nkag mus lub davhlau ya nyob twg rau hauv lub thawv tshawb nrhiav.
  2. Nkag mus rau hauv qab no lus txib , ces nias Rov qab los tsim cov ntaub ntawv npe xeem- node .
  3. Hom node ua raws li lub npe ntawm daim ntawv thov, uas yog xeem- node .

Ib yam li ntawd, nws tau nug, Kuv yuav qhib node js li cas los ntawm kev hais kom ua?

Qhib up ib lus txib ( Pib -> Khiav.. -> cmd ua .exe), ib node thiab ntaus nkag. Yog hais tias lub installation tiav, koj tam sim no nyob rau hauv lub lus txib kab mode node . js , txhais tau tias koj tuaj yeem code ntawm ya.

Tsis tas li ntawd, kuv yuav qhib node JS li cas? Node . js cov ntaub ntawv yuav tsum tau pib hauv "Command Line Interface" program ntawm koj lub computer. Yuav ua li cas qhib cov kab hais kom ua interface ntawm koj lub computer nyob ntawm lub operating system. Rau cov neeg siv Windows, nias lub pob pib thiab nrhiav "Command Prompt", lossis tsuas yog sau "cmd" hauv kev tshawb nrhiav.

Ib yam li ib tug yuav nug, koj ntaus dab tsi rau hauv kab hais kom qhib qhov REPL?

Txhawm rau pib ua haujlwm nrog REPL ib puag ncig ntawm NODE ; qhib nce lub davhlau ya nyob twg ( hauv case of UNIX/LINUX) los yog Command prompt ( hauv case of Windows) thiab sau node thiab nias ' nkag ' pib lub REPL . Cov REPL tau pib thiab demarcated los ntawm '>' cim.

Yuav ua li cas rub tawm node js ntawm Mac?

Yuav ua li cas rau nruab Node. js rau Mac

  1. Qhib Terminal los ntawm nias Command + Space kom qhib Spotlight Search thiab nkag mus rau Terminal ces nias Enter.
  2. Sau node - v hauv Terminal thiab nias Enter.
  3. Yog tias koj muaj Node.
  4. Yog tias koj tsis muaj Node.
  5. Mus rau nodejs.org.
  6. Thaum cov ntaub ntawv tiav rub tawm, nrhiav nws hauv Finder thiab nyem ob npaug rau nws.

Pom zoo: