流星JS-无法下载软件包-找不到HTTP错误404

时间:2018-10-19 19:35:09

标签: javascript node.js meteor

我现在因以下编译问题而停留数周。一旦我开始在本地运行它,就会发生以下错误。

由于对github的依赖性下降了,因此无法下载该软件包。

https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node

但这并不是真正需要的,我不确定如何跳过它。脚本到此为止。

请帮助。我是初级开发人员。

Adams-MacBook-Pro:xxx adam$ npm run start

> xxx-1.7@ start /Users/adam/Desktop/xxx
> meteor run --settings settings.json

[[[[[ ~/Desktop/xxx ]]]]]                 

=> Started proxy.                             
=> Errors prevented startup:                  

   While loading package lookback:emails@0.7.7:
   error: Command failed:
   /Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm
   rebuild --update-binary
   Cannot download
   "https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node": 

   HTTP error 404 Not Found

   Hint: If github.com is not accessible in your location
   try setting a proxy via HTTP_PROXY, e.g. 

   export HTTP_PROXY=http://example.com:1234

   or configure npm proxy via

   npm config set proxy http://example.com:8080
   gyp info it worked if it ends with ok
   gyp verb cli [
   '/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node',
   gyp verb cli
   '/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js',
   gyp verb cli   'rebuild',
   gyp verb cli   '--verbose',
   gyp verb cli   '--libsass_ext=',
   gyp verb cli   '--libsass_cflags=',
   gyp verb cli   '--libsass_ldflags=',
   gyp verb cli   '--libsass_library=' ]
   gyp info using node-gyp@3.4.0
   gyp info using node@8.11.4 | darwin | x64
   gyp verb command rebuild []
   gyp verb command clean []
   gyp verb clean removing "build" directory
   gyp verb command configure []
   gyp verb check python checking for Python executable "python2" in the PATH
   gyp verb `which` failed Error: not found: python2
   gyp verb `which` failed     at getNotFoundError
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
   gyp verb `which` failed     at F
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
   gyp verb `which` failed     at E
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
   gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:135:15)
   gyp verb `which` failed  python2 { Error: not found: python2
   gyp verb `which` failed     at getNotFoundError
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
   gyp verb `which` failed     at F
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
   gyp verb `which` failed     at E
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
   gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:135:15) code:
   'ENOENT' }
   gyp verb check python checking for Python executable "python" in the PATH
   gyp verb `which` succeeded python /usr/bin/python
   gyp verb check python version `/usr/bin/python -c "import platform;
   print(platform.python_version());"` returned: "2.7.10\n"
   gyp verb get node dir compiling against specified --nodedir dev files:
   /Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle
   gyp verb build dir attempting to create "build" dir:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
   gyp verb build dir "build" dir needed to be created?
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
   gyp verb build/config.gypi creating config file
   gyp verb build/config.gypi writing out config file:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi
   gyp verb config.gypi checking for gypi file:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/config.gypi
   gyp verb common.gypi checking for gypi file:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/common.gypi
   gyp verb gyp gyp format was not specified; forcing "make"
   gyp info spawn /usr/bin/python
   gyp info spawn args [
   '/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/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/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args
   '/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/addon.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args
   '/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/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/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle',
   gyp info spawn args
   '-Dnode_gyp_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp',
   gyp info spawn args   '-Dnode_lib_file=node.lib',
   gyp info spawn args
   '-Dmodule_root_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass',
   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=.' ]
   xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
   directory '/Library/Developer/CommandLineTools' is a command line tools
   instance

   xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
   directory '/Library/Developer/CommandLineTools' is a command line tools
   instance

   Traceback (most recent call last):
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/gyp_main.py",
   line 16, in <module>
   sys.exit(gyp.script_main())
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 545, in script_main
   return main(sys.argv[1:])
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 538, in main
   return gyp_main(args)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 523, in gyp_main
   generator.GenerateOutput(flat_list, targets, data, params)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 2170, in GenerateOutput
   part_of_all=qualified_target in needed_targets)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 795, in Write
   self.Pchify))
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 1190, in WriteSources
   cflags = self.xcode_settings.GetCflags(configname)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 551, in GetCflags
   archs = self.GetActiveArchs(self.configname)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 420, in GetActiveArchs
   xcode_archs_default = GetXcodeArchsDefault()
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 118, in GetXcodeArchsDefault
   xcode_version, _ = XcodeVersion()
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 1265, in XcodeVersion
   version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
   AttributeError: 'NoneType' object has no attribute 'groups'
   gyp ERR! configure error 
   gyp ERR! stack Error: `gyp` failed with exit code: 1
   gyp ERR! stack     at ChildProcess.onCpExit
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/lib/configure.js:305:16)
   gyp ERR! stack     at emitTwo (events.js:126:13)
   gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit
   (internal/child_process.js:198:12)
   gyp ERR! System Darwin 18.0.0
   gyp ERR! command
   "/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js"
   "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
   "--libsass_ldflags=" "--libsass_library="
   gyp ERR! cwd
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass
   gyp ERR! node -v v8.11.4
   gyp ERR! node-gyp -v v3.4.0
   gyp ERR! not ok 
   Build failed
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! node-sass@3.8.0 postinstall: `node scripts/build.js`
   npm ERR! Exit status 1
   npm ERR! 
   npm ERR! Failed at the node-sass@3.8.0 postinstall script.
   npm ERR! This is probably not a problem with npm. There is likely additional
   logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!     /Users/adam/.npm/_logs/2018-10-19T19_12_17_338Z-debug.log
   Cannot download
   "https://github.com/sass/node-sass/releases/download/v3.8.0/darwin-x64-57_binding.node": 

   HTTP error 404 Not Found

   Hint: If github.com is not accessible in your location
   try setting a proxy via HTTP_PROXY, e.g. 

   export HTTP_PROXY=http://example.com:1234

   or configure npm proxy via

   npm config set proxy http://example.com:8080
   gyp info it worked if it ends with ok
   gyp verb cli [
   '/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node',
   gyp verb cli
   '/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js',
   gyp verb cli   'rebuild',
   gyp verb cli   '--verbose',
   gyp verb cli   '--libsass_ext=',
   gyp verb cli   '--libsass_cflags=',
   gyp verb cli   '--libsass_ldflags=',
   gyp verb cli   '--libsass_library=' ]
   gyp info using node-gyp@3.4.0
   gyp info using node@8.11.4 | darwin | x64
   gyp verb command rebuild []
   gyp verb command clean []
   gyp verb clean removing "build" directory
   gyp verb command configure []
   gyp verb check python checking for Python executable "python2" in the PATH
   gyp verb `which` failed Error: not found: python2
   gyp verb `which` failed     at getNotFoundError
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
   gyp verb `which` failed     at F
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
   gyp verb `which` failed     at E
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
   gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:135:15)
   gyp verb `which` failed  python2 { Error: not found: python2
   gyp verb `which` failed     at getNotFoundError
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:14:12)
   gyp verb `which` failed     at F
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:69:19)
   gyp verb `which` failed     at E
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:81:29)
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/which/which.js:90:16
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/index.js:44:5
   gyp verb `which` failed     at
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/isexe/access.js:8:5
   gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:135:15) code:
   'ENOENT' }
   gyp verb check python checking for Python executable "python" in the PATH
   gyp verb `which` succeeded python /usr/bin/python
   gyp verb check python version `/usr/bin/python -c "import platform;
   print(platform.python_version());"` returned: "2.7.10\n"
   gyp verb get node dir compiling against specified --nodedir dev files:
   /Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle
   gyp verb build dir attempting to create "build" dir:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
   gyp verb build dir "build" dir needed to be created?
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build
   gyp verb build/config.gypi creating config file
   gyp verb build/config.gypi writing out config file:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi
   gyp verb config.gypi checking for gypi file:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/config.gypi
   gyp verb common.gypi checking for gypi file:
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/common.gypi
   gyp verb gyp gyp format was not specified; forcing "make"
   gyp info spawn /usr/bin/python
   gyp info spawn args [
   '/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/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/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass/build/config.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args
   '/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/addon.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args
   '/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/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/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle',
   gyp info spawn args
   '-Dnode_gyp_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp',
   gyp info spawn args   '-Dnode_lib_file=node.lib',
   gyp info spawn args
   '-Dmodule_root_dir=/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass',
   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=.' ]
   xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
   directory '/Library/Developer/CommandLineTools' is a command line tools
   instance

   xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
   directory '/Library/Developer/CommandLineTools' is a command line tools
   instance

   Traceback (most recent call last):
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/gyp_main.py",
   line 16, in <module>
   sys.exit(gyp.script_main())
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 545, in script_main
   return main(sys.argv[1:])
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 538, in main
   return gyp_main(args)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 523, in gyp_main
   generator.GenerateOutput(flat_list, targets, data, params)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 2170, in GenerateOutput
   part_of_all=qualified_target in needed_targets)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 795, in Write
   self.Pchify))
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 1190, in WriteSources
   cflags = self.xcode_settings.GetCflags(configname)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 551, in GetCflags
   archs = self.GetActiveArchs(self.configname)
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 420, in GetActiveArchs
   xcode_archs_default = GetXcodeArchsDefault()
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 118, in GetXcodeArchsDefault
   xcode_version, _ = XcodeVersion()
   File
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 1265, in XcodeVersion
   version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
   AttributeError: 'NoneType' object has no attribute 'groups'
   gyp ERR! configure error 
   gyp ERR! stack Error: `gyp` failed with exit code: 1
   gyp ERR! stack     at ChildProcess.onCpExit
   (/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/lib/configure.js:305:16)
   gyp ERR! stack     at emitTwo (events.js:126:13)
   gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit
   (internal/child_process.js:198:12)
   gyp ERR! System Darwin 18.0.0
   gyp ERR! command
   "/Users/adam/.meteor/packages/meteor-tool/.1.7.0_5.19pr45f.7esr++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
   "/Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/node-gyp/bin/node-gyp.js"
   "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
   "--libsass_ldflags=" "--libsass_library="
   gyp ERR! cwd
   /Users/adam/.meteor/packages/lookback_emails/.0.7.7.4eyw98.la2kl++os+web.browser+web.cordova/npm/example/node_modules/.temp-10vub78.i363/node_modules/node-sass
   gyp ERR! node -v v8.11.4
   gyp ERR! node-gyp -v v3.4.0
   gyp ERR! not ok 
   Build failed
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! node-sass@3.8.0 postinstall: `node scripts/build.js`
   npm ERR! Exit status 1
   npm ERR! 
   npm ERR! Failed at the node-sass@3.8.0 postinstall script.
   npm ERR! This is probably not a problem with npm. There is likely additional
   logging output above.

   npm ERR! A complete log of this run can be found in:
   npm ERR!     /Users/adam/.npm/_logs/2018-10-19T19_12_17_338Z-debug.log


=> Your application has errors. Waiting for file change.
=> Started MongoDB.                           

2 个答案:

答案 0 :(得分:0)

根据您的错误消息:

  

npm错误! node-sass@3.8.0

您正在使用3.8.0版的node-sass。此过时的版本与Node v8(已安装的Node版本)不兼容。

您可以: 1.升级节点资源 2.将节点降级到v6

我不建议使用选项2。

因此,要解决此错误,我建议将node-sass升级到至少<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> <div id="carousel_world"> <div id="carouselExampleIndicatorss" class="carousel slide" data-ride="carousel"> <!-- Indicators elements --> <ol class="carousel-indicators"> <li data-target="#carouselExampleIndicatorss" data-slide-to="0" class="active"></li> <li data-target="#carouselExampleIndicatorss" data-slide-to="1"></li> <li data-target="#carouselExampleIndicatorss" data-slide-to="2"></li> </ol> <!-- Sliders --> <div id="inner_world" class="carousel-inner"> <div class="carousel-item active"> <img class="h-100 w-100 custom-fixed-max-height" src="https://homepages.cae.wisc.edu/~ece533/images/airplane.png" alt="First slide"> </div> <div class="carousel-item"> <img class="h-100 w-100 custom-fixed-max-height" src="https://homepages.cae.wisc.edu/~ece533/images/arctichare.png" alt="Second slide"> </div> <div class="carousel-item"> <img class="h-100 w-100 custom-fixed-max-height" src="https://homepages.cae.wisc.edu/~ece533/images/baboon.png" alt="Third slide"> </div> </div> <!-- Arrows --> <a id="prev_caro_world" class="carousel-control-prev bg-info" href="#carouselExampleIndicatorss" role="button" data-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="sr-only">Previous</span> </a> <a id="nxt_caro_world" class="carousel-control-next bg-info" href="#carouselExampleIndicatorss" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div>,这是Node v8的最低版本。如果您使用的是npm,则其外观类似于4.5.3

在撰写本文时,@latest标记会将您带到npm install node-sass@latest,并会为您解决此问题。

答案 1 :(得分:0)

此问题是由于从github删除了node-sass版本3.8引起的,并且lookback:emails软件包中包含一个示例应用程序,该应用程序依赖于此版本。 我们通过将依赖关系更改为4.11解决了问题,并将示例应用程序也隐藏在.example目录下,因此程序包本身不再依赖任何版本的node-sass。 (仅示例应用程序,但对于程序包来说不是必需的,这只是一个演示) 我们将固定版本推向了大气。因此,一旦执行meteor update lookback:emails更新到软件包的最新版本,您就不会再收到该错误。