MoonBox icon indicating copy to clipboard operation
MoonBox copied to clipboard

前端报错问题解决 ReferenceError: primordials is not defined

Open zane001 opened this issue 1 year ago • 0 comments

client/package.json中"gulp": "^3.9.1", 在npm run build 时会报错ReferenceError: primordials is not defined 原因是因为 node版本与gulp版本不兼容导致 解决办法: "scripts": { "preinstall": "npx npm-force-resolutions", "dev": "cross-env NODE_ENV=local vue-cli-service serve", "build": "vue-cli-service build && gulp" }, "resolutions": { "graceful-fs": "^4.2.4" }, 然后执行 npm install npm run build

zane001 avatar Oct 25 '23 02:10 zane001