internet-identity icon indicating copy to clipboard operation
internet-identity copied to clipboard

Failed to exec build script

Open lazy1523 opened this issue 3 years ago • 3 comments

i try run II_ENV=development dfx deploy --no-wallet --argument '(null)'] but is error

lazy1523 avatar Sep 13 '21 13:09 lazy1523

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 info lifecycle [email protected]~build: [email protected]
7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/panhy/Documents/dfinity/Demo/internet-identity/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle [email protected]~build: CWD: /Users/panhy/Documents/dfinity/Demo/internet-identity
10 silly lifecycle [email protected]~build: Args: [ '-c', 'NODE_ENV=production webpack' ]
11 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
12 info lifecycle [email protected]~build: Failed to exec build script
13 verbose stack Error: [email protected] build: `NODE_ENV=production webpack`
13 verbose stack Exit status 1
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:400:28)
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:400:28)
13 verbose stack     at maybeClose (internal/child_process.js:1055:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/panhy/Documents/dfinity/Demo/internet-identity
16 verbose Darwin 20.5.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v14.17.5
19 verbose npm  v6.14.14
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: `NODE_ENV=production webpack`
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

lazy1523 avatar Sep 13 '21 13:09 lazy1523

pls help me

lazy1523 avatar Sep 13 '21 13:09 lazy1523

Hi, can you run npm run build and copy the output here? What versions of dfx and npm are you using?

nmattia avatar Oct 04 '21 09:10 nmattia