Skip to content

npm run build报错 #1

@vzhilong

Description

@vzhilong
10 silly lifecycle @mxflutter/mxflutter-widgets@0.8.0~build: Args: [ '-c', 'npm run clean && tsc --project ./tsconfig.json' ]
11 silly lifecycle @mxflutter/mxflutter-widgets@0.8.0~build: Returned: code: 2  signal: null
12 info lifecycle @mxflutter/mxflutter-widgets@0.8.0~build: Failed to exec build script
13 verbose stack Error: @mxflutter/mxflutter-widgets@0.8.0 build: `npm run clean && tsc --project ./tsconfig.json`
13 verbose stack Exit status 2
13 verbose stack     at EventEmitter.<anonymous> (/Users/vincent/.nvm/versions/node/v10.23.3/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack     at EventEmitter.emit (events.js:198:13)
13 verbose stack     at ChildProcess.<anonymous> (/Users/vincent/.nvm/versions/node/v10.23.3/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:198:13)
13 verbose stack     at maybeClose (internal/child_process.js:982:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid @mxflutter/mxflutter-widgets@0.8.0
15 verbose cwd /Users/vincent/workspace/flutter/mxflutter-js/packages/mxflutter-widgets
16 verbose Darwin 20.3.0
17 verbose argv "/Users/vincent/.nvm/versions/node/v10.23.3/bin/node" "/Users/vincent/.nvm/versions/node/v10.23.3/bin/npm" "run" "build"
18 verbose node v10.23.3
19 verbose npm  v6.14.11
20 error code ELIFECYCLE
21 error errno 2
22 error @mxflutter/mxflutter-widgets@0.8.0 build: `npm run clean && tsc --project ./tsconfig.json`
22 error Exit status 2
23 error Failed at the @mxflutter/mxflutter-widgets@0.8.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]

是否对npm有版本要求?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions