Using gulp without global gulp //edit: and without linking to the bin js file

前端 未结 6 1145
野趣味
野趣味 2021-02-12 18:16

I have a gulpfile.js that runs through perfectly when typing gulp into the commandline.

All the gulp bash command really does is calling the sp

6条回答
  •  无人及你
    2021-02-12 18:39

    Meanwhile since npm >= 5.2.0. you can do it with 'npx':

    npx gulp
    

    It executes the binaries in ./node_modules/.bin

    By the way, it has the ability to execute not installed tools which are only temporary installed, executed and then deleted.

    Checkout the post from Kat Marchán: Introducing npx: an npm package runner

提交回复
热议问题