美文网首页
npm Useful commands

npm Useful commands

作者: DOB_8199 | 来源:发表于2020-10-13 15:21 被阅读0次

    npm init :

    create your package.json file automatically

    npm install [--save-dev] [package_name]:

    1. Retrieves the last version of a package

    2. Install itglobally, for production environment or for development environment

    eg: npm 安装webpack:npm install --save-dev webpack

    npm install:

    Install all the packages defined in your package.json file

    npm run [script_name]

    1. Runs the right command lines defined in the scripts section

    2. For “start” or “test” commands, keyword “run” is not needed

    相关文章

      网友评论

          本文标题:npm Useful commands

          本文链接:https://www.haomeiwen.com/subject/qkdiuktx.html