SyntaxError: Octal literal in strict mode
miniprogram-ci pack-npm-manually --pack-npm-manually-package-json-path ./package.json --pack-npm-manually-miniprogram-npm-dist-dir ../dist/
const ci = require("miniprogram-ci");
ci.packNpmManually({
packageJsonPath: "./package.json",
miniprogramNpmDistDir: "../dist/"
});
两种构建npm都报错,但是可以运行
/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:2825
var err = new SyntaxError(message);
^
SyntaxError: Octal literal in strict mode (3:13)
at Parser.pp$4.raise (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:2825:15)
at Parser.pp$9.invalidStringToken (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4739:12)
at Parser.pp$9.readEscapedChar (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4841:16)
at Parser.pp$9.readString (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4705:21)
at Parser.pp$9.getTokenFromCode (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4528:19)
at Parser.pp$9.readToken (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4288:17)
at Parser.pp$9.nextToken (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4279:17)
at Parser.pp$9.next (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:4236:10)
at Parser.pp.eat (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:619:12)
at Parser.pp$1.parseVar (/usr/local/lib/node_modules/miniprogram-ci/node_modules/acorn/dist/acorn.js:1227:16) {
pos: 134,
loc: Position { line: 3, column: 13 },
raisedAt: 138
}