久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='oXyst'></bdo><ul id='oXyst'></ul>

    1. <i id='oXyst'><tr id='oXyst'><dt id='oXyst'><q id='oXyst'><span id='oXyst'><b id='oXyst'><form id='oXyst'><ins id='oXyst'></ins><ul id='oXyst'></ul><sub id='oXyst'></sub></form><legend id='oXyst'></legend><bdo id='oXyst'><pre id='oXyst'><center id='oXyst'></center></pre></bdo></b><th id='oXyst'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='oXyst'><tfoot id='oXyst'></tfoot><dl id='oXyst'><fieldset id='oXyst'></fieldset></dl></div>
      <tfoot id='oXyst'></tfoot>

        <legend id='oXyst'><style id='oXyst'><dir id='oXyst'><q id='oXyst'></q></dir></style></legend>
      1. <small id='oXyst'></small><noframes id='oXyst'>

        為什么我們需要在全局和本地安裝 gulp?

        Why do we need to install gulp globally and locally?(為什么我們需要在全局和本地安裝 gulp?)
            <tbody id='rSPgS'></tbody>
          <legend id='rSPgS'><style id='rSPgS'><dir id='rSPgS'><q id='rSPgS'></q></dir></style></legend>
            • <bdo id='rSPgS'></bdo><ul id='rSPgS'></ul>

                <small id='rSPgS'></small><noframes id='rSPgS'>

                • <i id='rSPgS'><tr id='rSPgS'><dt id='rSPgS'><q id='rSPgS'><span id='rSPgS'><b id='rSPgS'><form id='rSPgS'><ins id='rSPgS'></ins><ul id='rSPgS'></ul><sub id='rSPgS'></sub></form><legend id='rSPgS'></legend><bdo id='rSPgS'><pre id='rSPgS'><center id='rSPgS'></center></pre></bdo></b><th id='rSPgS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rSPgS'><tfoot id='rSPgS'></tfoot><dl id='rSPgS'><fieldset id='rSPgS'></fieldset></dl></div>
                  <tfoot id='rSPgS'></tfoot>
                  本文介紹了為什么我們需要在全局和本地安裝 gulp?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  2 個關于 gulp 的手冊說我需要先全局安裝 gulp(使用 -g 標志),然后再安裝一個當地時間.為什么我需要這個?

                  2 manuals about gulp say that I need to install gulp first globally (with -g flag) and then one more time locally. Why do I need this?

                  推薦答案

                  在全局安裝工具時,用戶可以在任何地方將其用作命令行實用程序,包括節點項目之外.節點項目的全局安裝不好,因為它們使部署更加困難.

                  When installing a tool globally it's to be used by a user as a command line utility anywhere, including outside of node projects. Global installs for a node project are bad because they make deployment more difficult.

                  npxnpm 5.2 捆綁在一起的實用程序解決了這個問題.使用它,您可以調用本地安裝的實用程序,如全局安裝的實用程序(但您必須以 npx 開頭命令).例如,如果你想調用一個本地安裝的 eslint,你可以這樣做:

                  The npx utility bundled with npm 5.2 solves this problem. With it you can invoke locally installed utilities like globally installed utilities (but you must begin the command with npx). For example, if you want to invoke a locally installed eslint, you can do:

                  npx eslint .
                  

                  npm

                  5.2

                  當在 package.json 的 script 字段中使用時,npm 會在 node_modules 中搜索工具以及全局安裝的模塊,因此本地安裝就足夠了.

                  npm < 5.2

                  When used in a script field of your package.json, npm searches node_modules for the tool as well as globally installed modules, so the local install is sufficient.

                  所以,如果您對(在您的 package.json 中)感到滿意:

                  So, if you are happy with (in your package.json):

                  "devDependencies": {
                      "gulp": "3.5.2"
                  }
                  "scripts": {
                      "test": "gulp test"
                  }
                  

                  等等.并使用 npm run test 運行,那么您根本不需要全局安裝.

                  etc. and running with npm run test then you shouldn't need the global install at all.

                  這兩種方法對于讓人們設置您的項目很有用,因為不需要 sudo.這也意味著 gulp 將在 package.json 中的版本發生碰撞時更新,因此每個人在使用您的項目開發時都將使用相同版本的 gulp.

                  Both methods are useful for getting people set up with your project since sudo isn't needed. It also means that gulp will be updated when the version is bumped in the package.json, so everyone will be using the same version of gulp when developing with your project.

                  gulp 在全局使用時似乎有一些不尋常的行為.當用作全局安裝時,gulp 會查找本地安裝的 gulp 以傳遞控制權.因此,gulp 全局安裝需要 gulp 本地安裝才能工作.上面的答案仍然有效.本地安裝總是優于全局安裝.

                  It appears that gulp has some unusual behaviour when used globally. When used as a global install, gulp looks for a locally installed gulp to pass control to. Therefore a gulp global install requires a gulp local install to work. The answer above still stands though. Local installs are always preferable to global installs.

                  這篇關于為什么我們需要在全局和本地安裝 gulp?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browserify, Babel 6, Gulp - Unexpected token on spread operator(Browserify,Babel 6,Gulp - 傳播運算符上的意外令牌)
                  Is it possible to pass a flag to Gulp to have it run tasks in different ways?(是否可以將標志傳遞給 Gulp 以使其以不同的方式運行任務?)
                  How to run Gulp tasks sequentially one after the other(如何一個接一個地依次運行 Gulp 任務)
                  Stylesheet not loaded because of MIME-type(由于 MIME 類型而未加載樣式表)
                  Visual Studio 2015 crashes when opening Javascript files(打開 Javascript 文件時 Visual Studio 2015 崩潰)
                  Detect FLASH plugin crashes(檢測 FLASH 插件崩潰)
                    <bdo id='CWxNw'></bdo><ul id='CWxNw'></ul>
                    <i id='CWxNw'><tr id='CWxNw'><dt id='CWxNw'><q id='CWxNw'><span id='CWxNw'><b id='CWxNw'><form id='CWxNw'><ins id='CWxNw'></ins><ul id='CWxNw'></ul><sub id='CWxNw'></sub></form><legend id='CWxNw'></legend><bdo id='CWxNw'><pre id='CWxNw'><center id='CWxNw'></center></pre></bdo></b><th id='CWxNw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CWxNw'><tfoot id='CWxNw'></tfoot><dl id='CWxNw'><fieldset id='CWxNw'></fieldset></dl></div>

                    <legend id='CWxNw'><style id='CWxNw'><dir id='CWxNw'><q id='CWxNw'></q></dir></style></legend>

                  • <small id='CWxNw'></small><noframes id='CWxNw'>

                          <tbody id='CWxNw'></tbody>

                            <tfoot id='CWxNw'></tfoot>
                            主站蜘蛛池模板: 麻豆精品一区二区三区在线观看 | 国产超碰人人爽人人做人人爱 | caoporn国产精品免费公开 | 玖玖免费 | 97国产精品视频人人做人人爱 | 99视频精品| 精精国产视频 | 无毛av| 欧美一级二级三级视频 | 亚洲激情一级片 | 国产国产精品久久久久 | 亚洲福利一区 | 一级片av | 一区二区在线观看av | 欧美日韩国产中文 | 国产资源在线观看 | 一级久久久久久 | 日韩精品视频在线观看一区二区三区 | 欧美一区二区在线观看视频 | 网站国产 | 91精品国产91久久久久久三级 | 精品国产乱码久久久久久久久 | 日韩一区二区三区视频在线观看 | 久久99视频免费观看 | 成人黄色在线 | 涩涩视频大全 | 日日噜噜噜夜夜爽爽狠狠视频, | 波波电影院一区二区三区 | 亚洲网站在线观看 | 欧美综合在线观看 | av一区二区三区四区 | 日本午夜网 | 91综合网 | 日本精品一区二区三区在线观看视频 | 久久久久久久久久久91 | 日韩三级在线观看 | 亚洲一区电影 | 久久国产精彩视频 | 在线成人福利 | 亚洲精品天堂 | 最近中文字幕在线视频1 |