postcss-conic-gradient icon indicating copy to clipboard operation
postcss-conic-gradient copied to clipboard

Package cairo was not found in the pkg-config search path

Open Grawl opened this issue 5 years ago • 0 comments

Can't install this package using yarn add postcss-conic-gradient:

➜ yarn add postcss-conic-gradient
yarn add v1.22.4
[1/5] Resolving packages...
[2/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/5] Linking dependencies...
warning " > @material-ui/[email protected]" has unmet peer dependency "@date-io/core@^1.3.6".
warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
warning " > [email protected]" has unmet peer dependency "popper.js@^1.16.0".
warning " > [email protected]" has incorrect peer dependency "@craco/[email protected]".
warning " > [email protected]" has unmet peer dependency "html-webpack-plugin@^4.0.0-beta.5".
warning " > [email protected]" has unmet peer dependency "[email protected]".
warning " > [email protected]" has incorrect peer dependency "[email protected] || 4.x.x".
warning " > [email protected]" has incorrect peer dependency "@material-ui/core@^3.2.0".
warning " > [email protected]" has unmet peer dependency "@types/classnames@^2.2".
warning " > [email protected]" has unmet peer dependency "@types/react@^16.8".
warning " > [email protected]" has unmet peer dependency "@types/react-dom@^16.8".
warning " > [email protected]" has unmet peer dependency "@types/react-is@^16.7".
warning " > [email protected]" has incorrect peer dependency "prop-types@>=16".
warning " > [email protected]" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
warning "react-scripts > @typescript-eslint/[email protected]" has unmet peer dependency "typescript@*".
warning "react-scripts > @typescript-eslint/[email protected]" has unmet peer dependency "typescript@*".
warning "react-scripts > @typescript-eslint/eslint-plugin > @typescript-eslint/[email protected]" has unmet peer dependency "typescript@*".
warning "react-scripts > @typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning "eslint-plugin-jsx-a11y > [email protected]" has unmet peer dependency "eslint@^5 || ^6".
warning " > [email protected]" has incorrect peer dependency "react@>=^16.0.0".
warning " > [email protected]" has incorrect peer dependency "react-dom@>=^16.0.0".
warning " > [email protected]" has unmet peer dependency "eslint@^4.19.1 || ^5.3.0".
warning "eslint-config-airbnb > [email protected]" has unmet peer dependency "eslint@^4.19.1 || ^5.3.0".
warning " > [email protected]" has unmet peer dependency "eslint@>=3.14.1".
warning " > [email protected]" has unmet peer dependency "[email protected] - 6.x".
warning " > [email protected]" has unmet peer dependency "eslint@>=5".
warning "eslint-plugin-jest > @typescript-eslint/[email protected]" has unmet peer dependency "eslint@*".
warning " > [email protected]" has unmet peer dependency "eslint@^3 || ^4 || ^5 || ^6".
warning " > [email protected]" has unmet peer dependency "eslint@>=2.0.0".
warning " > [email protected]" has unmet peer dependency "eslint@>= 5.0.0".
warning " > [email protected]" has unmet peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
[4/5] Building fresh packages...
[-/6] ⠄ waiting...
[-/6] ⠄ waiting...
[-/6] ⠄ waiting...
[4/6] ⠄ @scarf/scarf
error /home/grawl/IdeaProjects/my-project/node_modules/canvas: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /home/grawl/IdeaProjects/my-project/node_modules/canvas
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.7.6 found at "/usr/bin/python"
gyp info spawn /usr/bin/python
gyp info spawn args [
gyp info spawn args   '/home/grawl/.nvm/versions/node/v12.16.2/lib/node_modules/npm/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   '/home/grawl/IdeaProjects/my-project/node_modules/canvas/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/grawl/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/grawl/.cache/node-gyp/12.16.2/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/grawl/.cache/node-gyp/12.16.2',
gyp info spawn args   '-Dnode_gyp_dir=/home/grawl/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/grawl/.cache/node-gyp/12.16.2/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/grawl/IdeaProjects/my-project/node_modules/canvas',
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 ]
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
Package 'cairo', required by 'virtual:world', not found
gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/home/grawl/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.5.16-200.fc31.x86_64
gyp ERR! command "/home/grawl/.nvm/versions/node/v12.16.2/bin/node" "/home/grawl/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/grawl/IdeaProjects/my-project/node_modules/canvas




Command failed: /home/grawl/.yvm/versions/v1.22.4/bin/yarn.js add postcss-conic-gradient

But can with yarn add https://github.com/jonathantneal/postcss-conic-gradient.git#next

But it not works:

Error: Loading PostCSS Plugin failed: Cannot find module '/home/grawl/IdeaProjects/my-project/node_modules/postcss-conic-gradient/index.js'. Please verify that the package.json has a valid "main" entry

(@/home/grawl/IdeaProjects/my-project/postcss.config.js)
    at Array.map (<anonymous>)

Grawl avatar Apr 21 '20 03:04 Grawl