vendure-ecommerce / vendure

The commerce platform with customization in its DNA.
https://www.vendure.io
Other
5.78k stars 1.03k forks source link

Unable to install #275

Closed shirshak55 closed 4 years ago

shirshak55 commented 4 years ago

I cloned this repo and ran yarn

Suddenly i see node gyp error

➜  vendure yarn
yarn install v1.22.0
[1/5] πŸ”  Validating package.json...
[2/5] πŸ”  Resolving packages...
[3/5] 🚚  Fetching packages...
[4/5] πŸ”—  Linking dependencies...
warning "workspace-aggregator-65604a01-4414-4c66-b1b3-41e42c94ffd7 > @vendure/admin-ui > @ng-select/ng-select@3.7.2" has incorrect peer dependency "@angular/common@>=8.0.0 <9.0.0".
warning "workspace-aggregator-65604a01-4414-4c66-b1b3-41e42c94ffd7 > @vendure/admin-ui > @ng-select/ng-select@3.7.2" has incorrect peer dependency "@angular/core@>=8.0.0 <9.0.0".
warning "workspace-aggregator-65604a01-4414-4c66-b1b3-41e42c94ffd7 > @vendure/admin-ui > @ng-select/ng-select@3.7.2" has incorrect peer dependency "@angular/forms@>=8.0.0 <9.0.0".
warning "workspace-aggregator-65604a01-4414-4c66-b1b3-41e42c94ffd7 > @vendure/admin-ui > apollo-angular@1.8.0" has incorrect peer dependency "@angular/core@^6.1.0 || ^7.0.0 || ^8.0.0".
warning "workspace-aggregator-65604a01-4414-4c66-b1b3-41e42c94ffd7 > @vendure/admin-ui > ngx-translate-messageformat-compiler@4.5.0" has incorrect peer dependency "@angular/core@^6.0.0 || ^7.0.0 || ^8.0.0".
warning "workspace-aggregator-65604a01-4414-4c66-b1b3-41e42c94ffd7 > @vendure/core > @nestjs/graphql > merge-graphql-schemas > graphql-toolkit@0.5.0" has unmet peer dependency "graphql-tag-pluck@^0.8.3".
[5/5] πŸ”¨  Building fresh packages...
[-/19] ⠈ waiting...
[13/19] ⠈ sharp
[14/19] ⠁ node-libcurl
[12/19] ⠁ puppeteer
error /Users/quantum/Desktop/code/vendure/node_modules/node-libcurl: Command failed.
Exit code: 1
Command: node-pre-gyp install --fallback-to-build
Arguments:
Directory: /Users/quantum/Desktop/code/vendure/node_modules/node-libcurl
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.13.0
node-pre-gyp info using node@13.8.0 | darwin | x64
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp info check checked for "/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/lib/binding/node_libcurl.node" (not found)
node-pre-gyp http GET https://github.com/JCMais/node-libcurl/releases/download/v2.0.2/node_libcurl-v2.0.2-node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp http 404 https://github.com/JCMais/node-libcurl/releases/download/v2.0.2/node_libcurl-v2.0.2-node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Tried to download(404): https://github.com/JCMais/node-libcurl/releases/download/v2.0.2/node_libcurl-v2.0.2-node-v79-darwin-x64-unknown.tar.gz
node-pre-gyp WARN Pre-built binaries not found for node-libcurl@2.0.2 and node@13.8.0 (node-v79 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/JCMais/node-libcurl/releases/download/v2.0.2/node_libcurl-v2.0.2-node-v79-darwin-x64-unknown.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@13.8.0 | darwin | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@13.8.0 | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/Users/quantum/Desktop/code/vendure/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/quantum/Desktop/code/vendure/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/quantum/Library/Caches/node-gyp/13.8.0/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/quantum/Library/Caches/node-gyp/13.8.0',
gyp info spawn args   '-Dnode_gyp_dir=/Users/quantum/Desktop/code/vendure/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/quantum/Library/Caches/node-gyp/13.8.0/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@5.0.3
gyp info using node@13.8.0 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o
clang: error: no such file or directory: '/usr/include'
make: *** [Release/obj.target/node_libcurl/src/node_libcurl.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/quantum/Desktop/code/vendure/node_modules/node-gyp/lib/build.js:196:23)
gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/Cellar/node/13.8.0/bin/node" "/Users/quantum/Desktop/code/vendure/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/lib/binding/node_libcurl.node" "--module_name=node_libcurl" "--module_path=/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/lib/binding" "--napi_version=5" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v79"
gyp ERR! cwd /Users/quantum/Desktop/code/vendure/node_modules/node-libcurl
gyp ERR! node -v v13.8.0
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/13.8.0/bin/node /Users/quantum/Desktop/code/vendure/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/lib/binding --napi_version=5 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v79' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:321:20)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:1026:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
node-pre-gyp ERR! System Darwin 19.0.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/13.8.0/bin/node" "/Users/quantum/Desktop/code/vendure/node_modules/node-libcurl/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/quantum/Desktop/code/vendure/node_modules/node-libcurl
node-pre-gyp ERR! node -v v13.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok

I think this has to do with node-libcurl package.

michaelbromley commented 4 years ago

Hi, looks like it is this issue: https://www.npmjs.com/package/node-libcurl#xcode--10--macos-mojave

Try the work-around in the link and let me know if that fixes it.

shirshak55 commented 4 years ago

@michaelbromley i see other errors also

image
michaelbromley commented 4 years ago

Never seen that issue before. Please specify: OS & version, browser & version, and if possible try in another browser and see if you get the same error.

shirshak55 commented 4 years ago

Mac os firefox browser. Works on chrome

shirshak55 commented 4 years ago

actually in chrome this works http://localhost:3000/admin/login but http://localhost:3002/ doesn't works.

shirshak55 commented 4 years ago

its not working i used this command

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
installer: Error - the package path specified was invalid: '/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'.
michaelbromley commented 4 years ago

Unfortunately I don't develop on a mac so I can't really investigate this. I suggest you open an issue on the node-libcurl repo, since the problem is with that library specifically.

shirshak55 commented 4 years ago

alright then i will close it here :)