【问题标题】:TypeError: Cannot read property 'mergeConfig' of undefinedTypeError:无法读取未定义的属性“mergeConfig”
【发布时间】:2017-02-19 19:32:01
【问题描述】:

通过 cmd 运行 gulp 时出现此错误:

下面是我的package.json

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "gulp-install": "^0.6.0",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-11",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack": "^1.0.1",
    "laravel-elixir-webpack-official": "^1.0.2",
    "lodash": "^4.16.2",
    "vue": "^2.0.1",
    "vue-resource": "^1.0.3",
    "webpack": "^1.13.2"
  }
}

【问题讨论】:

  • 您需要出示您的gulpfile.js,否则我们无法为您提供帮助。
  • @Martin 通过运行 npm install --no-bin-links 修复了这个问题。顺便说一句,感谢您与我们联系。 :)

标签: node.js npm gulp


【解决方案1】:

我通过运行解决了这个问题:

npm install --no-bin-links

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-24
    • 2019-08-19
    • 1970-01-01
    相关资源
    最近更新 更多