[Solved] Loading fourseven:scss@3.13.0 error

Summary
/usr/ local/bin/meteor --settings settings.json --port 4000
[[[[[ ~/dev/uninite.com ]]]]]

=> Started proxy.
=> A patch (Meteor 1.6.1.4) for your current release is available!
   Update this project now with 'meteor update --patch'.
=> Started MongoDB.
=> Errors prevented startup:
   
   **_**While loading package fourseven:scss@3.13.0:**_**
**_**   error: Command failed:**_**
**_**   /Users/Rashadul/.meteor/packages/meteor-tool/.1.6.0_1.p3u9t5.whcv++os.osx.x86_64+web.browser+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.13.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=example**_*
**_**   **_**
**_**   or configure npm proxy via**_**
**_**   **_**
**_**   npm config set proxy **_**
   gyp info it worked if it ends with ok
   gyp verb cli [
   '/Users/Rashadul/.meteor/packages/meteor-tool/.1.6.0_1.p3u9t5.whcv++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node',
   gyp verb cli
   '/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/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.9.3 | 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/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:13:12)
   gyp verb `which` failed     at F
   (/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:68:19)
   gyp verb `which` failed     at E
   (/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:80:29)
   gyp verb `which` failed     at
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:89:16
   gyp verb `which` failed     at
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/isexe/index.js:44:5
   gyp verb `which` failed     at
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/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/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:13:12)
   gyp verb `which` failed     at F
   (/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:68:19)
   gyp verb `which` failed     at E
   (/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:80:29)
   gyp verb `which` failed     at
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/which/which.js:89:16
   gyp verb `which` failed     at
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/isexe/index.js:44:5
   gyp verb `which` failed     at
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/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/Rashadul/.meteor/packages/meteor-tool/.1.6.0_1.p3u9t5.whcv++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle
   gyp verb build dir attempting to create "build" dir:
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/node_modules/node-sass/build
   gyp verb build dir "build" dir needed to be created?
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/node_modules/node-sass/build
   gyp verb build/config.gypi creating config file
   gyp verb build/config.gypi writing out config file:
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/node_modules/node-sass/build/config.gypi
   gyp verb config.gypi checking for gypi file:
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/node_modules/node-sass/config.gypi
   gyp verb common.gypi checking for gypi file:
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/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/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/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/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/node_modules/node-sass/build/config.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args
   '/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/addon.gypi',
   gyp info spawn args   '-I',
   gyp info spawn args
   '/Users/Rashadul/.meteor/packages/meteor-tool/.1.6.0_1.p3u9t5.whcv++os.osx.x86_64+web.browser+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/Rashadul/.meteor/packages/meteor-tool/.1.6.0_1.p3u9t5.whcv++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle',
   gyp info spawn args
   '-Dnode_gyp_dir=/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp',
   gyp info spawn args   '-Dnode_lib_file=node.lib',
   gyp info spawn args
   '-Dmodule_root_dir=/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/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/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/gyp_main.py",
   line 16, in <module>
   sys.exit(gyp.script_main())
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 545, in script_main
   return main(sys.argv[1:])
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 538, in main
   return gyp_main(args)
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/__init__.py",
   line 523, in gyp_main
   generator.GenerateOutput(flat_list, targets, data, params)
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 2170, in GenerateOutput
   part_of_all=qualified_target in needed_targets)
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 795, in Write
   self.Pchify))
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py",
   line 1190, in WriteSources
   cflags = self.xcode_settings.GetCflags(configname)
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 551, in GetCflags
   archs = self.GetActiveArchs(self.configname)
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 420, in GetActiveArchs
   xcode_archs_default = GetXcodeArchsDefault()
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py",
   line 118, in GetXcodeArchsDefault
   xcode_version, _ = XcodeVersion()
   File
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/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/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/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 17.7.0
   gyp ERR! command
   "/Users/Rashadul/.meteor/packages/meteor-tool/.1.6.0_1.p3u9t5.whcv++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
   "/Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/node-gyp/bin/node-gyp.js"
   "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
   "--libsass_ldflags=" "--libsass_library="
   gyp ERR! cwd
   /Users/Rashadul/.meteor/packages/fourseven_scss/.3.13.0.2pvnnz.nwj7h++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/compileScssBatch/node_modules/.temp-1lto6t1.lxid/node_modules/node-sass
   gyp ERR! node -v v8.9.3
   gyp ERR! node-gyp -v v3.4.0
   gyp ERR! not ok 
   Build failed with error code: 1
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! node-sass@3.13.0 postinstall: `node scripts/build.js`
   npm ERR! Exit status 1
   npm ERR! 
   npm ERR! Failed at the node-sass@3.13.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/Rashadul/.npm/_logs/2018-11-21T14_31_58_053Z-debug.log  
     
   
=> Your application has errors. Waiting for file change.

couldn’t understand the problem reason and what will be the solution. Tried to install the fourseven:scss package manually but no change. If try to install another version of scss it shows the same error.
Help needed.

If you look through the dump, the last lines before the “Traceback” point to the likely reason.
Th key lines being:

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

Because node-sass uses a c++ module that get’s built for your node version it needs to be compiled on install. That compilation requires certain tools to be available on your system
From https://github.com/nodejs/node-gyp#installation:

On macOS

  • python ( v2.7 recommended, v3.x.x is not supported) (already installed on macOS)
  • Xcode
    • You also need to install the Command Line Tools via Xcode. You can find this under the menu Xcode -> Preferences -> Locations (or by running xcode-select --install in your Terminal)
      • This step will install gcc and the related toolchain containing make

So unless something worse is wrong, the solution is to install Xcode

1 Like

Also worth noting that the 404 error earlier in the stack is because npm will look for pre-compiled releases that match your system.

Because you’re using an older version of fourseven:scss, it’s looking up the matching older version of node-sass.
That older version of node-sass was pre-compiled up to node 7.10.1.
Using a newer version of Meteor (with a newer version of node) means there isn’t a pre-compiled node-binary for node-sass available for that older version.

If you don’t want to install Xcode, you could try updating fourseven:scss to the newest version, which should match a node-sass version with pre-compiled binaries for the node that comes with Meteor 1.6

After installing Xcode it seems to be perfect and fine. Thank you for your help.

1 Like