rpm run build err!

来源:2-1 vue-loader+webpack项目配置

慕数据3983593

2020-01-10 17:58

http://img.mukewang.com/5e184aa500019f4408790526.jpg

 npm run build


> vue@1.0.0 build F:\workspace\ui\vue

> webpack --config webpack.config.js


internal/modules/cjs/loader.js:584

    throw err;

    ^


Error: Cannot find module 'p-try'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)

    at Function.Module._load (internal/modules/cjs/loader.js:508:25)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:22:18)

    at Object.<anonymous> (F:\workspace\ui\vue\node_modules\_p-limit@2.2.2@p-limit\index.js:2:14)

    at Module._compile (internal/modules/cjs/loader.js:701:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)

    at Module.load (internal/modules/cjs/loader.js:600:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

    at Function.Module._load (internal/modules/cjs/loader.js:531:3)

npm ERR! code ELIFECYCLE

npm ERR! errno 1

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

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the 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\7\AppData\Roaming\npm-cache\_logs\2020-01-10T09_55_56_335Z-debug.log


写回答 关注

1回答

  • 奔向一万小时
    2020-02-15 13:13:02

    提示找不到p-try,你可以试着npm i 一下

Vue+Webpack打造todo应用

用前端最热门框架Vue+最火打包工具Webpack打造todo应用

84606 学习 · 787 问题

查看课程

相似问题