1. Gulp 全局安装:报错

我的主要有两条,第二条是 目标版本,之前一直改不了,然后忽略,再直接安装本地,可能与node最初配置安装node_modules有关吧,刚刚系统path,加上了当时node的node_modules:D:\nodeJs\node_global\node_modules,路径,又查到了gulp-cli的路径,修正了好多,终于实现自己部署gulp构建项目了。

win 10 Gulp 踩过的坑

这是今天加的两个路径,之前应该是加错了,把node_modules路劲加到用户变量里面去了(此node_modules应该是在安装node.js时,全局安装的node_modules,所以,以后新建项目不需要再一次全局安装node_modules,因为全局环境里面已经有了吧),又加上了npm的路径()

    2.

win 10 Gulp 踩过的坑

win 10 Gulp 踩过的坑

3.gulp cli 与 local 版本不一致,卸载本地,重装,我装的是3版本,

npm install --save-dev [email protected](虽然很多警告,但可以忽略)

win 10 Gulp 踩过的坑

win 10 Gulp 踩过的坑

win 10 Gulp 踩过的坑

4.任务运行成功

win 10 Gulp 踩过的坑

win 10 Gulp 踩过的坑

相关文章:

  • 2021-08-13
  • 2021-08-17
  • 2021-12-10
  • 2021-06-06
  • 2021-06-17
  • 2021-07-07
  • 2021-04-26
  • 2021-11-29
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2021-09-19
  • 2021-10-10
  • 2021-12-20
  • 2021-12-29
  • 2021-11-11
相关资源
相似解决方案