收藏
回答

Mac工具编译(真机调试)错误?

1.05.2103042

log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'tsc' ]
2 info using npm@6.14.11
3 info using node@v14.16.0
4 verbose run-script [ 'pretsc', 'tsc', 'posttsc' ]
5 info lifecycle miniprogram-ts-quickstart@1.0.0~pretsc: miniprogram-ts-quickstart@1.0.0
6 info lifecycle miniprogram-ts-quickstart@1.0.0~tsc: miniprogram-ts-quickstart@1.0.0
7 verbose lifecycle miniprogram-ts-quickstart@1.0.0~tsc: unsafe-perm in lifecycle true
8 verbose lifecycle miniprogram-ts-quickstart@1.0.0~tsc: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/lvshicheng/WeChatProjects/miniprogram-1/node_modules/.bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
9 verbose lifecycle miniprogram-ts-quickstart@1.0.0~tsc: CWD: /Users/lvshicheng/WeChatProjects/miniprogram-1
10 silly lifecycle miniprogram-ts-quickstart@1.0.0~tsc: Args: [ '-c', 'node ./node_modules/typescript/lib/tsc.js' ]
11 silly lifecycle miniprogram-ts-quickstart@1.0.0~tsc: Returned: code: 2  signal: null
12 info lifecycle miniprogram-ts-quickstart@1.0.0~tsc: Failed to exec tsc script
13 verbose stack Error: miniprogram-ts-quickstart@1.0.0 tsc: `node ./node_modules/typescript/lib/tsc.js`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:315:20)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:315:20)
13 verbose stack     at maybeClose (internal/child_process.js:1048:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid miniprogram-ts-quickstart@1.0.0
15 verbose cwd /Users/lvshicheng/WeChatProjects/miniprogram-1
16 verbose Darwin 20.3.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "tsc"
18 verbose node v14.16.0
19 verbose npm  v6.14.11
20 error code ELIFECYCLE
21 error errno 2
22 error miniprogram-ts-quickstart@1.0.0 tsc: `node ./node_modules/typescript/lib/tsc.js`
22 error Exit status 2
23 error Failed at the miniprogram-ts-quickstart@1.0.0 tsc script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]

回答关注问题邀请回答
收藏

1 个回答

  • John von Neumann
    John von Neumann
    03-08

    可否截图看看具体错误情况?这个错误日志还看不出问题所在。

    03-08
    有用
    回复 1
    • fight go
      fight go
      03-09
      03-09
      回复
登录 后发表内容
问题标签