求大老,npm run build:weapp 后报错



  • 求大老,npm run build:weapp 后报错
    { Error: Cannot find module './node_modules/source-map'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/zhangchao/Desktop/work/Taro/bc-jiangbei-mini/node_modules/_uglify-js@3.5.12@uglify-js/tools/node.js:26:6)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3) code: 'MODULE_NOT_FOUND' }



  • 你的 cli 版本和 依赖是一致吗


登录后回复