当前位置: 首页 > 工具软件 > Snapshot.js > 使用案例 >

node_modules/asn1.js/lib/asn1/base/node.js:282

怀洛华
2023-12-01

node: v14.15.4
npm :v6.14.10

npm run build

编译报错

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file: 

 	./node_modules/asn1.js/lib/asn1/base/node.js:282 

Read more here: http://bit.ly/2tRViJ9

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! antd-demo@0.1.0 build: `react-app-rewired build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the antd-demo@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

网上找了找,按照其说明依然没解决

之后将node_modules/asn1.js/lib/asn1/base/node.js文件中使用的let修改为var正常

有知道原因的可以告知下

 类似资料: