- 点击构建npm时
提示
发生错误
SyntaxError: Invalid number (80:53)SyntaxError: Invalid number (80:53)
at Parser.pp$4.raise (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2610:13)
at Parser.pp$8.readNumber (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:3393:32)
at Parser.pp$8.getTokenFromCode (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:3216:17)
at Parser.pp$8.readToken (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2975:15)
at Parser.pp$8.nextToken (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2966:15)
at Parser.pp$8.next (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2923:8)
at Parser.pp$3.parseExprOp (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:1891:12)
at Parser.pp$3.parseExprOps (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:1876:90)
at Parser.pp$3.parseMaybeConditional (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:1857:19)
at Parser.pp$3.parseMaybeAssign (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:1832:19)
- 跟踪发现时strict模式下使用了8进制整数作为 fs.open 的mode参数