先直接上結(jié)果
sudo xcode-select --reset
現(xiàn)象
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass/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/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/jason/.node-gyp/10.18.1/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/jason/.node-gyp/10.18.1',
gyp info spawn args '-Dnode_gyp_dir=/Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/jason/.node-gyp/10.18.1/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass',
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=.' ]
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 20.1.0
gyp ERR! command "/Users/jason/.nvm/versions/node/v10.18.1/bin/node" "/Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/jason/develop/industics/ibrain-web/in-mom-facade-frontend/node_modules/node-sass
gyp ERR! node -v v10.18.1
參考文章:
https://blog.csdn.net/weisubao/article/details/105464662