问答详情
源自:2-1 vue-loader+webpack项目配置

第一个npm runbuild出现了问题,按照老师的版本 "css-loader": "^0.28.7", "vue": "^2.5.13", "vue-loader": "^13.6.0", "vue-template-compiler": "^2.5.13", "webpack": "^3.10.0"

TypeError: path.jion is not a function

    at Object.<anonymous> (E:\web前段\zuixin-vue\webpack.config.js:5:12)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

    at Module.require (module.js:596:17)

    at require (internal/module.js:11:18)

    at requireConfig (E:\web前段\zuixin-vue\node_modules\webpack\bin\convert-argv.js:97:18)

    at E:\web前段\zuixin-vue\node_modules\webpack\bin\convert-argv.js:104:17

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! zuixin-vue@1.0.0 build: `webpack --config webpack.config.js`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the zuixin-vue@1.0.0 build script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\小陆\AppData\Roaming\npm-cache\_logs\2018-08-06T12_50_20_720Z-debug.log


提问者:慕圣7255176 2018-08-06 21:01

个回答

  • H2MAX
    2018-08-06 23:59:33

    TypeError: path.jion is not a function

    是join