rozdoum / social-app-android

Build your social app for Android with the code template that includes the following key features for social networks as likes, comments, posts, image uploads, etc.
Apache License 2.0
453 stars 262 forks source link

python 3 woes - node-gyp SyntaxError: invalid syntax - update readme to mandate python2 environment. #85

Closed 8secz-johndpope closed 5 years ago

8secz-johndpope commented 5 years ago

/Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/grpc/src/node/extension_binary/node-v64-darwin-x64-unknown/grpc_node.node" is installed via remote

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN firebase-functions@2.3.1 requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself. npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_25_40_257Z-debug.log (base) ➜ functions git:(master) ✗ python Python 3.7.3 (default, Mar 27 2019, 16:54:48) [Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information.

[4] + 28783 suspended python (base) ➜ functions git:(master) ✗ sudo npm install -g n sudo n latest Password: /Users/johndpope/.nvm/versions/node/v10.15.3/bin/n -> /Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/n/bin/n

  • n@4.1.0 added 1 package from 4 contributors in 1.257s
 install : node-v12.3.1
   mkdir : /usr/local/n/versions/node/12.3.1
   fetch : https://nodejs.org/dist/v12.3.1/node-v12.3.1-darwin-x64.tar.gz

######################################################################## 100.0% installed : v10.15.3

(base) ➜ functions git:(master) ✗ npm install

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN firebase-functions@2.3.1 requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_30_12_719Z-debug.log (base) ➜ functions git:(master) ✗ sudo npm install

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN firebase-functions@2.3.1 requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_30_33_589Z-debug.log (base) ➜ functions git:(master) ✗ npm install firebase-admin npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN firebase-functions@2.3.1 requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself.

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN firebase-functions@2.3.1 requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_31_07_612Z-debug.log (base) ➜ functions git:(master) ✗ npm install

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN firebase-functions@2.3.1 requires a peer of firebase-admin@^7.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_31_20_500Z-debug.log (base) ➜ functions git:(master) ✗ npm install firebase-admin@^7.0.0 zsh: no matches found: firebase-admin@^7.0.0 (base) ➜ functions git:(master) ✗ npm install "firebase-admin@^7.0.0"

protobufjs@6.8.8 postinstall /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/@grpc/proto-loader/node_modules/protobufjs node scripts/postinstall

protobufjs@6.8.8 postinstall /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/grpc-gcp/node_modules/protobufjs node scripts/postinstall

npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_31_58_697Z-debug.log (base) ➜ functions git:(master) ✗ npm install "ajv@^5.0.0"

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_32_22_927Z-debug.log (base) ➜ functions git:(master) ✗ npm install "sharp@0.18.4"

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_32_42_595Z-debug.log (base) ➜ functions git:(master) ✗ npm install --save sharp

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_33_38_812Z-debug.log (base) ➜ functions git:(master) ✗ npm install -g node-gyp /Users/johndpope/.nvm/versions/node/v10.15.3/bin/node-gyp -> /Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/node-gyp/bin/node-gyp.js

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: Command failed: /Users/johndpope/miniconda3/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:389:11) gyp ERR! stack at Socket.emit (events.js:189:13) gyp ERR! stack at Pipe._handle.close (net.js:597:12) gyp ERR! System Darwin 18.6.0 gyp ERR! command "/Users/johndpope/.nvm/versions/node/v10.15.3/bin/node" "/Users/johndpope/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.18.4 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.18.4 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/johndpope/.npm/_logs/2019-05-27T01_34_05_211Z-debug.log (base) ➜ functions git:(master) ✗ npm install --save sharp (base) ➜ functions git:(master) ✗ conda usage: conda [-h] [-V] command ...

conda is a tool for managing and deploying applications, environments and packages.

Options:

positional arguments: command clean Remove unused packages and caches. config Modify configuration values in .condarc. This is modeled after the git config command. Writes to the user .condarc file (/Users/johndpope/.condarc) by default. create Create a new conda environment from a list of specified packages. help Displays a list of available conda commands and their help strings. info Display information about current conda install. init Initialize conda for shell interaction. [Experimental] install Installs a list of packages into a specified conda environment. list List linked packages in a conda environment. package Low-level conda package utility. (EXPERIMENTAL) remove Remove a list of packages from a specified conda environment. uninstall Alias for conda remove. run Run an executable in a conda environment. [Experimental] search Search for packages and display associated information. The input is a MatchSpec, a query language for conda packages. See examples below. update Updates conda packages to the latest compatible version. upgrade Alias for conda update.

optional arguments: -h, --help Show this help message and exit. -V, --version Show the conda version number and exit.

conda commands available from other packages: env (base) ➜ functions git:(master) ✗ conda env list

conda environments:

# base * /Users/johndpope/miniconda3 gymai /Users/johndpope/miniconda3/envs/gymai

(base) ➜ functions git:(master) ✗ vonfs rnb vtrsyr√ (base) ➜ functions git:(master) ✗ conda env create p2

SpecNotFound: Invalid name, try the format: user/package

(base) ➜ functions git:(master) ✗ conda env create p2 python2 usage: conda-env [-h] {create,export,list,remove,update} ... conda-env: error: unrecognized arguments: python2 (base) ➜ functions git:(master) ✗ conda create -n p2 python=2 Collecting package metadata: done Solving environment: done

Package Plan

environment location: /Users/johndpope/miniconda3/envs/p2

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
certifi-2019.3.9           |           py27_0         155 KB
pip-19.1.1                 |           py27_0         1.8 MB
python-2.7.16              |       h97142e2_0        12.1 MB
setuptools-41.0.1          |           py27_0         627 KB
sqlite-3.28.0              |       ha441bb4_0         2.3 MB
wheel-0.33.4               |           py27_0          39 KB
------------------------------------------------------------
                                       Total:        17.1 MB

The following NEW packages will be INSTALLED:

certifi pkgs/main/osx-64::certifi-2019.3.9-py27_0 libcxx pkgs/main/osx-64::libcxx-4.0.1-hcfea43d_1 libcxxabi pkgs/main/osx-64::libcxxabi-4.0.1-hcfea43d_1 libedit pkgs/main/osx-64::libedit-3.1.20181209-hb402a30_0 libffi pkgs/main/osx-64::libffi-3.2.1-h475c297_4 ncurses pkgs/main/osx-64::ncurses-6.1-h0a44026_1 pip pkgs/main/osx-64::pip-19.1.1-py27_0 python pkgs/main/osx-64::python-2.7.16-h97142e2_0 readline pkgs/main/osx-64::readline-7.0-h1de35cc_5 setuptools pkgs/main/osx-64::setuptools-41.0.1-py27_0 sqlite pkgs/main/osx-64::sqlite-3.28.0-ha441bb4_0 tk pkgs/main/osx-64::tk-8.6.8-ha441bb4_0 wheel pkgs/main/osx-64::wheel-0.33.4-py27_0 zlib pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3

Proceed ([y]/n)?

Downloading and Extracting Packages certifi-2019.3.9 | 155 KB | ##################################################################################################################### | 100% python-2.7.16 | 12.1 MB | ##################################################################################################################### | 100% pip-19.1.1 | 1.8 MB | ##################################################################################################################### | 100% wheel-0.33.4 | 39 KB | ##################################################################################################################### | 100% sqlite-3.28.0 | 2.3 MB | ##################################################################################################################### | 100% setuptools-41.0.1 | 627 KB | ##################################################################################################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done #

To activate this environment, use

#

$ conda activate p2

#

To deactivate an active environment, use

#

$ conda deactivate

(base) ➜ functions git:(master) ✗ conda activate p2 (p2) ➜ functions git:(master) ✗ npm install --save sharp

sharp@0.18.4 install /Users/johndpope/Documents/gitWorkspace/social-app-android/functions/node_modules/sharp node-gyp rebuild

TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o CXX(target) Release/obj.target/sharp/src/metadata.o ../src/metadata.cc:142:17: warning: 'Call' is deprecated [-Wdeprecated-declarations] debuglog->Call(1, message); ^ ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/metadata.cc:147:15: warning: 'Call' is deprecated [-Wdeprecated-declarations] callback->Call(2, argv); ^ ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

2 warnings generated. CXX(target) Release/obj.target/sharp/src/operations.o CXX(target) Release/obj.target/sharp/src/pipeline.o ../src/pipeline.cc:1041:8: warning: lambda capture 'this' is not used [-Wunused-lambda-capture] [this](sharp::InputDescriptor *joinChannelIn) { ^ ../src/pipeline.cc:1050:17: warning: 'Call' is deprecated [-Wdeprecated-declarations] debuglog->Call(1, message); ^ ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/pipeline.cc:1057:20: warning: 'Call' is deprecated [-Wdeprecated-declarations] queueListener->Call(1, queueLength); ^ ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/pipeline.cc:1061:15: warning: 'Call' is deprecated [-Wdeprecated-declarations] callback->Call(3, argv); ^ ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

../src/pipeline.cc:1335:18: warning: 'Call' is deprecated [-Wdeprecated-declarations] queueListener->Call(1, queueLength); ^ ../../nan/nan.h:1739:3: note: 'Call' has been explicitly marked deprecated here NAN_DEPRECATED inline v8::Local ^ ../../nan/nan.h:104:40: note: expanded from macro 'NAN_DEPRECATED'

define NAN_DEPRECATED attribute((deprecated))

                                   ^

5 warnings generated. CXX(target) Release/obj.target/sharp/src/sharp.o CXX(target) Release/obj.target/sharp/src/utilities.o SOLINK_MODULE(target) Release/sharp.node TOUCH Release/obj.target/win_copy_dlls.stamp

Batishev-Rozdoum commented 5 years ago

Hi @8secz-johndpope I'm not sure that python 3 is unsupported. I didn't find this information. As for me, everything works perfectly with Node version v8.9.1 Python 2.7.12 .

During installation I choose

? Do you want to install dependencies with npm now? Yes And dependency (include sharp) were installed.

If you have some problem with sharp library you can install it separately. https://sharp.pixelplumbing.com/en/stable/install/

Hope it helps.