在执行npm install的时候出现了下面的错误,安装Xcode并执行
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
整个过程记录如下
(base) apple@apple vue-manage-system-5.0.0 npm install
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated querystring@0.2.0: The
npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
⸨ ⸩ ⠼ reify:element-plus: timing reifyNode:node_modules/rxjs C
⸨ ⸩ ⠼ reify:element-plus: timing reifyNode:node_modules/rxjs C
⸨ ⸩ ⠼ reify:element-plus: timing reifyNode:node_modules/rxjs C
⸨ ⸩ ⠼ reify:element-plus: timing reifyNode:node_modules/rxjs C
⸨ ⸩ ⠼ reify:element-plus: timing reifyNode:node_modules/rxjs C
npm ERR! code 1
npm ERR! path /Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@14.16.0 | darwin | x64
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apple/.node-gyp/14.16.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/apple/.node-gyp/14.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/apple/.node-gyp/14.16.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
npm ERR!
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
npm ERR!
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
npm ERR!
npm ERR! gyp: No Xcode or CLT version detected!
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/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp/lib/configure.js:345:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:315:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 19.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers
npm ERR! gyp ERR! node -v v14.16.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2021-08-13T01_24_42_274Z-debug.log
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0 brew install pkg-config cairo libpng jpeg giflib
Updating Homebrew...
^C^C% (base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0 cd ~
(base) apple@apple apple open .
(base) apple@apple apple cd -
~/Downloads/vue-manage-system-5.0.0
(base) apple@apple vue-manage-system-5.0.0 npm install
npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated querystring@0.2.0: The
npm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @hapi/address@2.1.4: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
⸨ ⸩ ⠇ reify:element-plus: timing reifyNode:node_modules/rxjs C
⸨ ⸩ ⠇ reify:element-plus: timing reifyNode:node_modules/rxjs C
npm ERR! code 1
npm ERR! path /Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@14.16.0 | darwin | x64
npm ERR! gyp http GET https://nodejs.org/download/release/v14.16.0/node-v14.16.0-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v14.16.0/node-v14.16.0-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v14.16.0/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v14.16.0/SHASUMS256.txt
npm ERR! gyp info spawn /usr/bin/python2
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/apple/.node-gyp/14.16.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/apple/.node-gyp/14.16.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/apple/.node-gyp/14.16.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
npm ERR!
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
npm ERR!
npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
npm ERR!
npm ERR! gyp: No Xcode or CLT version detected!
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/apple/Downloads/vue-manage-system-5.0.0/node_modules/node-gyp/lib/configure.js:345:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:315:20)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
npm ERR! gyp ERR! System Darwin 19.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /Users/apple/Downloads/vue-manage-system-5.0.0/node_modules/fibers
npm ERR! gyp ERR! node -v v14.16.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/apple/.npm/_logs/2021-08-13T01_29_26_409Z-debug.log
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0
(base) ✘ apple@apple vue-manage-system-5.0.0 open .
(base) apple@apple vue-manage-system-5.0.0 cp /Users/apple/.npm/_logs/2021-08-13T01_29_26_409Z-debug.log .
(base) apple@apple vue-manage-system-5.0.0 /usr/sbin/pkgutil --packages | grep CLTools
(base) ✘ apple@apple vue-manage-system-5.0.0 sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Password:
(base) apple@apple vue-manage-system-5.0.0 npm install
网友评论