openwallet-foundation / bifold-wallet

Aries Mobile Agent React Native - Part of the Aries Bifold effort to provide SSI capabilities in a production ready app.
Apache License 2.0
146 stars 141 forks source link

Failed to build definition file while running npm install command #437

Closed realabbas closed 2 years ago

realabbas commented 2 years ago
0 verbose cli [
0 verbose cli   '/Users/apple/.nvm/versions/node/v16.15.0/bin/node',
0 verbose cli   '/Users/apple/.nvm/versions/node/v16.15.0/bin/npm',
0 verbose cli   'i'
0 verbose cli ]
1 info using npm@8.5.5
2 info using node@v16.15.0
3 timing npm:load:whichnode Completed in 0ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/Users/apple/.nvm/versions/node/v16.15.0/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/Users/apple/Desktop/aries-mobile-agent-react-native/.npmrc Completed in 0ms
10 timing config:load:project Completed in 2ms
11 timing config:load:file:/Users/apple/.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:/Users/apple/.nvm/versions/node/v16.15.0/etc/npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 12ms
19 timing npm:load:configload Completed in 12ms
20 timing npm:load:setTitle Completed in 22ms
21 timing config:load:flatten Completed in 4ms
22 timing npm:load:display Completed in 5ms
23 verbose logfile /Users/apple/.npm/_logs/2022-09-12T10_02_19_891Z-debug-0.log
24 timing npm:load:logFile Completed in 7ms
25 timing npm:load:timers Completed in 0ms
26 timing npm:load:configScope Completed in 0ms
27 timing npm:load Completed in 49ms
28 timing arborist:ctor Completed in 1ms
29 silly logfile start cleaning logs, removing 1 files
30 timing idealTree:init Completed in 73ms
31 timing idealTree:userRequests Completed in 0ms
32 silly idealTree buildDeps
33 timing idealTree:#root Completed in 0ms
34 timing idealTree:buildDeps Completed in 2ms
35 timing idealTree:fixDepFlags Completed in 0ms
36 timing idealTree Completed in 77ms
37 timing arborist:ctor Completed in 0ms
38 timing reify:loadTrees Completed in 114ms
39 timing reify:diffTrees Completed in 11ms
40 silly reify moves {}
41 timing reify:retireShallow Completed in 0ms
42 timing reify:createSparse Completed in 0ms
43 timing reify:loadBundles Completed in 0ms
44 silly audit bulk request {
44 silly audit   'ansi-styles': [ '3.2.1' ],
44 silly audit   'balanced-match': [ '1.0.2' ],
44 silly audit   'brace-expansion': [ '1.1.11' ],
44 silly audit   'call-bind': [ '1.0.2' ],
44 silly audit   chalk: [ '2.4.2' ],
44 silly audit   'color-convert': [ '1.9.3' ],
44 silly audit   'color-name': [ '1.1.3' ],
44 silly audit   'concat-map': [ '0.0.1' ],
44 silly audit   'cross-spawn': [ '6.0.5' ],
44 silly audit   'define-properties': [ '1.1.3' ],
44 silly audit   'error-ex': [ '1.3.2' ],
44 silly audit   'es-abstract': [ '1.19.2' ],
44 silly audit   'es-to-primitive': [ '1.2.1' ],
44 silly audit   'escape-string-regexp': [ '1.0.5' ],
44 silly audit   'function-bind': [ '1.1.1' ],
44 silly audit   'get-intrinsic': [ '1.1.1' ],
44 silly audit   'get-symbol-description': [ '1.0.0' ],
44 silly audit   'graceful-fs': [ '4.2.10' ],
44 silly audit   has: [ '1.0.3' ],
44 silly audit   'has-bigints': [ '1.0.1' ],
44 silly audit   'has-flag': [ '3.0.0' ],
44 silly audit   'has-symbols': [ '1.0.3' ],
44 silly audit   'has-tostringtag': [ '1.0.0' ],
44 silly audit   'hosted-git-info': [ '2.8.9' ],
44 silly audit   'internal-slot': [ '1.0.3' ],
44 silly audit   'is-arrayish': [ '0.2.1' ],
44 silly audit   'is-bigint': [ '1.0.4' ],
44 silly audit   'is-boolean-object': [ '1.1.2' ],
44 silly audit   'is-callable': [ '1.2.4' ],
44 silly audit   'is-core-module': [ '2.8.1' ],
44 silly audit   'is-date-object': [ '1.0.5' ],
44 silly audit   'is-negative-zero': [ '2.0.2' ],
44 silly audit   'is-number-object': [ '1.0.7' ],
44 silly audit   'is-regex': [ '1.1.4' ],
44 silly audit   'is-shared-array-buffer': [ '1.0.2' ],
44 silly audit   'is-string': [ '1.0.7' ],
44 silly audit   'is-symbol': [ '1.0.4' ],
44 silly audit   'is-weakref': [ '1.0.2' ],
44 silly audit   isexe: [ '2.0.0' ],
44 silly audit   'json-parse-better-errors': [ '1.0.2' ],
44 silly audit   'load-json-file': [ '4.0.0' ],
44 silly audit   memorystream: [ '0.3.1' ],
44 silly audit   minimatch: [ '3.1.2' ],
44 silly audit   'nice-try': [ '1.0.5' ],
44 silly audit   'normalize-package-data': [ '2.5.0' ],
44 silly audit   'npm-run-all': [ '4.1.5' ],
44 silly audit   'object-inspect': [ '1.12.0' ],
44 silly audit   'object-keys': [ '1.1.1' ],
44 silly audit   'object.assign': [ '4.1.2' ],
44 silly audit   'parse-json': [ '4.0.0' ],
44 silly audit   'path-key': [ '2.0.1' ],
44 silly audit   'path-parse': [ '1.0.7' ],
44 silly audit   'path-type': [ '3.0.0' ],
44 silly audit   pidtree: [ '0.3.1' ],
44 silly audit   pify: [ '3.0.0' ],
44 silly audit   'read-pkg': [ '3.0.0' ],
44 silly audit   resolve: [ '1.22.0' ],
44 silly audit   semver: [ '5.7.1' ],
44 silly audit   'shebang-command': [ '1.2.0' ],
44 silly audit   'shebang-regex': [ '1.0.0' ],
44 silly audit   'shell-quote': [ '1.7.3' ],
44 silly audit   'side-channel': [ '1.0.4' ],
44 silly audit   'spdx-correct': [ '3.1.1' ],
44 silly audit   'spdx-exceptions': [ '2.3.0' ],
44 silly audit   'spdx-expression-parse': [ '3.0.1' ],
44 silly audit   'spdx-license-ids': [ '3.0.11' ],
44 silly audit   'string.prototype.padend': [ '3.1.3' ],
44 silly audit   'string.prototype.trimend': [ '1.0.4' ],
44 silly audit   'string.prototype.trimstart': [ '1.0.4' ],
44 silly audit   'strip-bom': [ '3.0.0' ],
44 silly audit   'supports-color': [ '5.5.0' ],
44 silly audit   'supports-preserve-symlinks-flag': [ '1.0.0' ],
44 silly audit   'unbox-primitive': [ '1.0.1' ],
44 silly audit   'validate-npm-package-license': [ '3.0.4' ],
44 silly audit   which: [ '1.3.1' ],
44 silly audit   'which-boxed-primitive': [ '1.0.2' ]
44 silly audit }
45 timing reify:unpack Completed in 3ms
46 timing reify:unretire Completed in 0ms
47 timing build:queue Completed in 0ms
48 timing build:deps Completed in 1ms
49 timing build Completed in 1ms
50 timing reify:build Completed in 1ms
51 timing reify:trash Completed in 0ms
52 timing reify:save Completed in 17ms
53 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 466ms
54 timing auditReport:getReport Completed in 469ms
55 silly audit report {}
56 timing auditReport:init Completed in 0ms
57 timing reify:audit Completed in 469ms
58 timing reify Completed in 607ms
59 timing command:i Completed in 59149ms
60 verbose stack Error: command failed
60 verbose stack     at ChildProcess.<anonymous> (/Users/apple/.nvm/versions/node/v16.15.0/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
60 verbose stack     at ChildProcess.emit (node:events:527:28)
60 verbose stack     at maybeClose (node:internal/child_process:1092:16)
60 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
61 verbose pkgid bifold-main@0.0.1
62 verbose cwd /Users/apple/Desktop/aries-mobile-agent-react-native
63 verbose Darwin 21.4.0
64 verbose argv "/Users/apple/.nvm/versions/node/v16.15.0/bin/node" "/Users/apple/.nvm/versions/node/v16.15.0/bin/npm" "i"
65 verbose node v16.15.0
66 verbose npm  v8.5.5
67 error code 1
68 error path /Users/apple/Desktop/aries-mobile-agent-react-native
69 error command failed
70 error command sh -c run-s ci:all build:all
71 verbose exit 1
72 timing npm Completed in 59417ms
73 verbose code 1
74 error A complete log of this run can be found in:
74 error     /Users/apple/.npm/_logs/2022-09-12T10_02_19_891Z-debug-0.log

Found 242 errors.

✖ Failed to build definition files.
bob build

build files for publishing

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Error: Failed to build definition files.
    at build (/Users/apple/Desktop/aries-mobile-agent-react-native/core/node_modules/react-native-builder-bob/lib/targets/typescript.js:112:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.handler (/Users/apple/Desktop/aries-mobile-agent-react-native/core/node_modules/react-native-builder-bob/lib/index.js:379:9)
ERROR: "build:core" exited with 1.
ERROR: "build:all" exited with 1.
npm ERR! code 1
npm ERR! path /Users/apple/Desktop/aries-mobile-agent-react-native
npm ERR! command failed
npm ERR! command sh -c run-s ci:all build:all

npm ERR! A complete log of this run can be found in:

Node Version : 16.15.0 Npm Version : 8.5.5 Operating System: Mac Chip: Intel Core i9

Screenshot 2022-09-12 at 3 33 40 PM
realabbas commented 2 years ago

But I tested on Apple Mac Air (M1), it runs fine on this machine. So what could be the probable reason ?

JamesKEbert commented 2 years ago

I've often run into issues when installing in the root directory, so I often will do npm install in the ./core directory followed by npm install in the ./app directory. Could be worth a shot?

realabbas commented 2 years ago

I've often run into issues when installing in the root directory, so I often will do npm install in the ./core directory followed by npm install in the ./app directory. Could be worth a shot?

Oh okay, I'll try this and post the outcome here

realabbas commented 2 years ago

Yeah this approach works. Thanks @JamesKEbert for the help!

Installing separately

cd core
npm install

cd app
npm install