IBM / customer-loyalty-program

# WARNING: This repository is no longer maintained :warning: This pattern focuses on older technology (e.g. Hyperledger Fabric APIs prior to Fabric 1.4). Therefore, there is no support for this pattern and it will be archived on May 1, 2019. You are welcome to use up to that date, but we recommend that you begin working with the updated release found at https://developer.ibm.com/patterns/customer-loyalty-program-with-iks-saas-v2-fabric/.
https://developer.ibm.com/patterns/customer-loyalty-program-with-blockchain/
Apache License 2.0
64 stars 78 forks source link

step 2 - Generate the Business Network Archive #6

Closed shankarjai2525 closed 6 years ago

shankarjai2525 commented 6 years ago

I'm running into an issue when i run the command npm install Here is the error I get. Jaishankars-MacBook-Pro:customer-loyalty-program jgothan@us.ibm.com$ npm install

node-report@2.2.1 install /Users/jgothan@us.ibm.com/Client/BlockChain/customer-loyalty-program/node_modules/node-report node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Traceback (most recent call last): File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 16, in sys.exit(gyp.script_main()) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 545, in script_main return main(sys.argv[1:]) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 538, in main return gyp_main(args) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/init.py", line 523, in gyp_main generator.GenerateOutput(flat_list, targets, data, params) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2170, in GenerateOutput part_of_all=qualified_target in needed_targets) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 795, in Write self.Pchify)) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources cflags = self.xcode_settings.GetCflags(configname) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 551, in GetCflags archs = self.GetActiveArchs(self.configname) File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 420, in GetActiveArchs xcode_archs_default = GetXcodeArchsDefault() File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault xcodeversion, = XcodeVersion() File "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1265, in XcodeVersion version = re.match(r'(\d.\d.?\d*)', version).groups()[0] AttributeError: 'NoneType' object has no attribute 'groups' gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:336:16) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Darwin 17.7.0 gyp ERR! command "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/bin/node" "/Users/jgothan@us.ibm.com/.nvm/versions/node/v8.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/jgothan@us.ibm.com/Client/BlockChain/customer-loyalty-program/node_modules/node-report gyp ERR! node -v v8.9.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN clp-network@0.0.1 No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-report@2.2.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-report@2.2.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/jgothan@us.ibm.com/.npm/_logs/2018-08-15T21_03_26_338Z-debug.log

need help.

raheelzubairy commented 6 years ago

@shankarjai2525 this seems to be an xcode installation error try xcode-select --install # Install Command Line Tools if you haven't already. sudo xcode-select --switch /Library/Developer/CommandLineTools # Enable command line tools

per: https://github.com/nodejs/node-gyp/issues/569

Haddadmj commented 6 years ago

do u still have the problem ?

shankarjai2525 commented 6 years ago

no. i have resolved it. thanks Jai

On Tue, Aug 21, 2018 at 9:22 AM Haddadmj notifications@github.com wrote:

do u still have the problem ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IBM/customer-loyalty-program/issues/6#issuecomment-414691631, or mute the thread https://github.com/notifications/unsubscribe-auth/AguOoofJbX0KSwzntwNF8pJH1BYYICvNks5uTBeKgaJpZM4V-z6v .

-- Jai