Home  >  Q&A  >  body text

git - npm init 报错

不能创建项目的基本配置


自动跳出来

我想大声告诉你我想大声告诉你2698 days ago599

reply all(4)I'll reply

  • 为情所困

    为情所困2017-05-02 09:43:12

    It looks like there is no error reported. . . Just press Enter to continue.

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:43:12

    Was your project cloned from git? If so, just execute npm install directly in the directory with package.json. npm init is what you use to fill in various information about the project step by step. 在本地新建项目Then use
    npm install <dependency name> --save the library that the project depends on to run
    or npm install <dependency name> --save-dev the library that the project development depends on
    to save the project's dependencies to the package. in json. In this way, after others clone your project, they can easily install and run the project's dependencies.
    I suggest you take a look at npm’s tutorial.

    reply
    0
  • 为情所困

    为情所困2017-05-02 09:43:12

    echo {} > package.json

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:43:12

    Just press Enter, fifteen words, fifteen words

    reply
    0
  • Cancelreply