问答详情
源自:4-1 webpack配置css单独分离打包

打包成功,但没有css文件

按照老师的步骤写的,为什么我的没有打包出css文件呢。。。

提问者:安耀奇 2018-02-04 19:36

个回答

  • 安耀奇
    2018-02-27 21:32:16

    终端执行 npm i extract-text-webpack-plugin 时候报错了
    报错内容:

    npm WARN checkPermissions Missing write access to E:\my-project\vue-TuDolist\node_modules\uglify-js\node_modules\yargs

    npm WARN vue-tudolist@1.0.0 No repository field.


    npm ERR! path E:\my-project\vue-TuDolist\node_modules\uglify-js\node_modules\yargs

    npm ERR! code ENOENT

    npm ERR! errno -4058

    npm ERR! syscall access

    npm ERR! enoent ENOENT: no such file or directory, access 'E:\my-project\vue-TuDolist\node_modules\uglify-js\node_modules\yargs'

    npm ERR! enoent This is related to npm not being able to find a file.

    npm ERR! enoent


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

    npm ERR!     C:\Users\anyao\AppData\Roaming\npm-cache\_logs\2018-02-27T13_17_35_828Z-debug.log