微信小程序SyntaxError: Invalid number (80:53)SyntaxError: Invalid number (80:53) at Parser.pp$4.raise

发生错误
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)


问题的原因:

package.json 内部的原因 :
 package.json里面的dependencies:{
  
}
多了一个"production": "0.0.2",  
去掉就行了
或者去掉dependencies{} 里面的多余的就可以了

你可能感兴趣的:(小程序)