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

前端 未结 6 1135
野趣味
野趣味 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:29

    When you install it locally (npm install --save-dev gulp) you can just run it by calling ./node_modules/.bin/gulp all

    Or you can define an npm script, and run it with npm run gulp

    by adding this to package.json

    "scripts": {
      "gulp": "gulp"
    }
    

提交回复
热议问题