script如下

"test":"gulp --gulpfile test.js"

运行 npm run test ,提示编译错误

解决办法如下:

增加script

"start":"npm run test",

"test":"gulp --gulpfile test.js"

运行如命令即可:npm run start

posted on 2019-09-28 17:10  芝麻的西瓜  阅读(911)  评论(0编辑  收藏  举报