【问题标题】:Error: Cannot find module 'assets-webpack-plugin' on Jenkins错误:在 Jenkins 上找不到模块“assets-webpack-plugin”
【发布时间】:2016-11-11 17:11:14
【问题描述】:

在将webpack 作为jenkins 作业执行时出现以下错误。

webpack --config config/webpack.dev.js --progress --profile

Error: Cannot find module 'assets-webpack-plugin'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> 

npm ERR! Linux 3.16.0-33-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build:dev"
npm ERR! node v0.10.45
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE

【问题讨论】:

    标签: node.js jenkins npm webpack assets-webpack-plugin


    【解决方案1】:

    This plugin didn't get installed due to incorrect node and npm version installed/used by Jenkins.

    此场景需要在运行 jenkins 的 ubuntu 操作系统上进行以下版本升级:

    • 节点 - v6.x.x
    • npm - v3.x.x

    【讨论】:

      猜你喜欢
      • 2016-09-15
      • 2016-03-04
      • 2016-07-23
      • 2015-06-12
      • 2019-04-23
      • 2022-01-11
      • 2020-01-17
      • 2016-10-17
      • 1970-01-01
      相关资源
      最近更新 更多