npm run build时出错

提问 未结 1 58
renrenyyds
renrenyyds 2021-04-07
悬赏:20积分
版本:renren-fast 开发环境:
错误信息如下 [pre] npm run build > renren-fast-vue@1.2.2 build E:\JavaDev\workspace_all_2020\fast-vue > gulp E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\sver-compat\sver.js:19 var semver = version.match(semverRegEx); ^ TypeError: Cannot read property 'match' of undefined at new Semver (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\sver-compat\sver.js:19:24) at Function.match (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\sver-compat\sver.js:374:15) at matches (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\semver-greatest-satisfied-range\index.js:9:24) at Array.filter (<anonymous>) at findRange (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\semver-greatest-satisfied-range\index.js:12:28) at Liftoff.handleArguments (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\gulp-cli\index.js:200:15) at Liftoff.execute (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\liftoff\index.js:201:12) at module.exports (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\flagged-respawn\index.js:51:3) at Liftoff.<anonymous> (E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\liftoff\index.js:191:5) at E:\Java_tools\node-v10.16.3-win-x64\node_modules\gulp\node_modules\liftoff\index.js:149:9 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! renren-fast-vue@1.2.2 build: `gulp` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the renren-fast-vue@1.2.2 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [/pre]
回帖
  • renrenyyds
    renrenyyds (楼主)
    2021-04-07
    重新npm install 解决
    0 回复