search

Home  >  Q&A  >  body text

node.js - 关于nodejs安装的问题

我想问的是:本人现在在自学混合开发,当安装nodejs时有四个选项。这四个选项选择安装后会有什么不同,还是说随便选,请求大神们的解答!谢谢!

高洛峰高洛峰2785 days ago647

reply all(4)I'll reply

  • PHPz

    PHPz2017-04-17 15:18:02

    You must select the node operating environment, otherwise the code you write will not run. You must also select the npm package manager. This is used to download dependent packages. Online document. You don’t need to select this. The document can be viewed on the official website. Add to path To select, add it to the path. You can directly node app.js anywhere in cmd. If you don’t select it, you will have to D:XXX/node.exe app.js every time you run it. So much Trouble

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:18:02

    Don’t worry, just go to the next step. . .

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 15:18:02

    Since you have chosen Node.js, please use Linux

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:18:02

    1. nodejs running environment --- required, this is the core, used to execute js in the background

    2. NPM package management ------ Optional, used for nodejs package management. If you do not want to install it, you need to install npm independently, so generally check

    3. Online Documentation --- Optional

    4. Add to system path --- Optional, after checking it, you can use nodejs and npm commands directly in cmd, otherwise you need to quote the corresponding exe to execute the command

    reply
    0
  • Cancelreply