npm ERR! code 1
npm ERR! path /Volumes/D/HTML/vscodework/react/my-app/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! Package pangocairo was not found in the pkg-config search path.
npm ERR! Perhaps you should add the directory containing `pangocairo.pc'
npm ERR! to the PKG_CONFIG_PATH environment variable
npm ERR! No package 'pangocairo' found
npm ERR! gyp: Call to 'pkg-config pangocairo --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onCpExit (/Volumes/D/HTML/vscodework/react/my-app/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 20.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Volumes/D/HTML/vscodework/react/my-app/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Volumes/D/HTML/vscodework/react/my-app/node_modules/canvas
npm ERR! gyp ERR! node -v v14.17.5
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
Problem solving: install dependent Libraries
brew install pkg-config cairo pango
Check the functions of these databases:
PKG config: used to return installation library information
Cairo: a free drawing library
Pango: a free function library
I don’t know what to do after checking. It’s good anyway!
Read More:
- An error is reported when using react app rewired to start the react project
- React create project error
- Win10 (1703) app store download app prompt error code 0x80d0000a
- Mobile app development: installation and configuration of react native
- The uni app references the vant component and reports an error unclosed bracket when compiling
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- Execution failed for task ‘:app:processDebugManifest’
- Perfect solution Error:Execution failed for task ‘: APP:transformClassesWithDexForDebug ‘… Problem
- Error:Execution failed for task’:app:processDebugResources’. Personally resolved
- Execution failed for task ‘:app:mergeDebugResources’.
- Execution failed for task ‘:app:processDebugManifest’.
- Execution failed for task ‘:app:stripDebugDebugSymbols‘.
- Error:Execution failed for task ‘: app:transformDexArchiveWithExternalLibsDexMergerForDebug The solution
- Execution failed for task ‘:app:installDebug’.
- To solve the execution failed for task ‘: app:transformDexArchiveWithDexMergerForDebug ‘
- ./src/App.js Line 13:11: Parsing error: Unterminated JSX contents (react)
- Quick solution org.gradle.api . tasks.TaskExecutionException : Execution failed for task ‘: app:compileJava ‘
- Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’