npm ERR! code 1
npm ERR! path /Users/tangwenjing/Html/imooc/my-app1/node_modules/canvas
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! /bin/sh: pkg-config: command not found
npm ERR! gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 127 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 (/Users/tangwenjing/Html/imooc/my-app1/node_modules/node-gyp/lib/configure.js:351:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:376:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 20.4.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/tangwenjing/Html/imooc/my-app1/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/tangwenjing/Html/imooc/my-app1/node_modules/canvas
npm ERR! gyp ERR! node -v v14.17.0
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:
npm ERR! /Users/tangwenjing/.npm/_logs/2021-06-03T09_55_42_223Z-debug.log
Solution: install nodejs installation package directly because of the NPM version problem
Read More:
- An error is reported when using react app rewired to start the react project
- Failed to load plugin react: cannot find module ‘eslint plugin react’ appears when running Vue project‘
- Error code 1 error resolution (NPX create react app my app execution reports an error)
- webstorm npm install –save –save-exact –loglevel error react react-dom react-scripts has failed.
- react Error: Unable to resolve module mobx-react
- [W xx:xx:xx.xxx NotebookApp] 404 GET/static/components/react/react-dom.production.min.js (::1)
- 【react】 tsconfig.json Configuration of react JSX error reporting solution in
- When react devtools is enabled, an error is reported for the project
- react Error: Objects are not valid as a React child (found: object with keys {username, password})
- Create vue-cli4 project and report error command failed: yarn
- Create an OpenGL project in codeblock
- Create Vue cli project and report error command failed: Yarn
- “Failed to create interpreter” appears when pychar creates a new project
- How to create JSP project in new version after idea2020
- Click the button to use in the react project window.open Methods open a new page and click the data again
- maven_ Unable to create servlet file under Java Web project
- Create a new project in pycharm: modulenotfounde rror:No module named ‘distutils.util‘
- [Solved] Xcode 11 Create New Project Error: Safe Area Layout Guide before iOS 9.0 [12]
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- React Error: Minified React error #119