search

Home  >  Q&A  >  body text

node.js配置相关

高洛峰高洛峰2767 days ago400

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 13:32:58

    For files written by yourself, when requiring, use a relative path, preceded by . or ..
    For example, if you put server.js in F:nodejs, when running node in this directory, you should write require('./server.js')
    To use express from the command line, you should npm install -g express-generator

    reply
    0
  • Cancelreply