node.js - gulp serve 报错 求大神节点哪里错了
天蓬老师
天蓬老师 2017-04-17 15:39:26
0
3
343

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(3)
PHPzhong

The environment variable is wrong

PHPzhong

I don’t know if you are talking about gulp-server, so first check whether this plug-in is installed. Just look in the node_modules folder. Then, you can’t see the task you wrote

洪涛

It feels like browser-sync
1. Install first: npm install browser-sync --save-dev
2. var browserSync=require('browser-sync');
3. gulp .task('browserSync',function(){

browserSync({
    server:{
        baseDir:'app'//index所在的文件夹
    }
})

});
4. The default address for server startup without error: http://localhost:3000/
The parameters inside can be configured by yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template