[email protected] Problem with the vendor/darwin-x64-14/binding.node binary (MacOS X 10.6.8)
I want to install gulp-sass, however when I did this I got an error. I did some research and read that gulp-sass depends on node-sass and so I went to install node-sass and also got an error.
Node-sass seems to be having problems with the binary? And also has problems wit the binary and then also a problem with python. I have Python 2.6.1 installed.
I am fairly beginner and really at a loss and in unfamiliar territory. I tried reading this thread --> https://github.com/sass/node-sass/issues/428 , but was having trouble relating it to exactly what my problem is/what I need to.
I am on a Mac 10.6.8.
Do I need to upgrade python? Its a ton of MB and I don't really want to...
Below are the installation errors I am getting:
node-sass error
SartanMac:showme saratankard$ npm install node-sass --save-dev npm WARN package.json [email protected] homepage field must start with a protocol. npm WARN package.json [email protected] No license field.
[email protected] postinstall /Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync node postinstall
[email protected] install /Users/saratankard/WebApps/showme/node_modules/node-sass node scripts/install.js
Binary downloaded and installed at /Users/saratankard/WebApps/showme/node_modules/node-sass/vendor/darwin-x64-14/binding.node [email protected] postinstall /Users/saratankard/WebApps/showme/node_modules/node-sass node scripts/build.js
/Users/saratankard/WebApps/showme/node_modules/node-sass/vendor/darwin-x64-14/binding.node exists.
testing binary.
Problem with the binary.
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli '/Users/saratankard/WebApps/showme/node_modules/node-sass/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 [email protected]
gyp info using [email protected] | 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 F (/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb which failed at E (/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb which failed at /Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb which failed at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb which failed python2 [Error: not found: python2]
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 python -c "import platform; print(platform.python_version());" returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/WebApps/showme/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/saratankard/WebApps/showme/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/saratankard/WebApps/showme/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/saratankard/WebApps/showme/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/saratankard/WebApps/showme/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/Users/saratankard/WebApps/showme/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/saratankard/WebApps/showme/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/.node-gyp/0.12.7/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/saratankard/.node-gyp/0.12.7',
gyp info spawn args '-Dnode_gyp_dir=/Users/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/saratankard/WebApps/showme/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=.' ]
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/saratankard/WebApps/showme/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/WebApps/showme/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/saratankard/WebApps/showme/node_modules/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "node-sass" "--save-dev"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /Users/saratankard/WebApps/showme/npm-debug.log
gulp-sass-error
SartanMac:showme saratankard$ npm install gulp-sass --save-dev npm WARN package.json [email protected] homepage field must start with a protocol. npm WARN package.json [email protected] No license field.
[email protected] postinstall /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync node postinstall
[email protected] install /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass node scripts/install.js
Binary downloaded and installed at /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
[email protected] postinstall /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass node scripts/build.js
/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node exists.
testing binary.
Problem with the binary.
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli '/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/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 [email protected]
gyp info using [email protected] | 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 F (/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb which failed at E (/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb which failed at /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb which failed at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb which failed python2 [Error: not found: python2]
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 python -c "import platform; print(platform.python_version());" returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/Users/saratankard/WebApps/showme/node_modules/gulp-sass/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/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/.node-gyp/0.12.7/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/saratankard/.node-gyp/0.12.7',
gyp info spawn args '-Dnode_gyp_dir=/Users/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/saratankard/WebApps/showme/node_modules/gulp-sass/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=.' ]
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/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/WebApps/showme/node_modules/gulp-sass/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/saratankard/WebApps/showme/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "gulp-sass" "--save-dev"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /Users/saratankard/WebApps/showme/npm-debug.log
Can you go through our TROUBLESHOOTING.md document and post the output? I am interested in your node version, platform details etc.
Can you also fetch the node-sass manually via git:
git clone https://github.com/sass/node-sass
cd node-sass
then start your node and enter
var r = require('node-sass')
console.log(r)
Also, as a workaround, can you see if npm install node-sass@beta works better?
Thanks @saper... Unfortunately I am still running into issues =/
For the troubleshooting.md--- I was unable to perform the last step because I cannot cd node_modules/node-sass/vendor because the node_modules dir does not exist. If I look at the npm-debug.log it looks as if this dir is created but then "gently removed". Here is the npm-debug.log if helpful --> https://gist.github.com/gecko25/823aa63bc36efd2a25c8
For the the git clone approach, I also am running into weirdness. It seems that even when I clone I cannot get node to recognize node-sass...? Am I missing something obvious? I pasted the output for that as well.
For the npm install node-sass@beta I still get an installation error =. I'll paste that below as well.
---------------troubleshooting.md output---------------
SartanMac:~ saratankard$ mkdir temp1
SartanMac:~ saratankard$ cd temp1
SartanMac:temp1 saratankard$ npm -v
2.11.3
SartanMac:temp1 saratankard$ node -v
v0.12.7
SartanMac:temp1 saratankard$ node -p process.versions
{ http_parser: '2.3',
node: '0.12.7',
v8: '3.28.71.19',
uv: '1.6.1',
zlib: '1.2.8',
modules: '14',
openssl: '1.0.1p' }
SartanMac:temp1 saratankard$ node -p process.platform
darwin
SartanMac:temp1 saratankard$ node -p process.arch
x64
-----Output when accessing node-sass from a fresh git-clone ----------
SartanMac:node-sass saratankard$ clear
SartanMac:node-sass saratankard$ pwd
/Users/saratankard/temp3/node-sass
SartanMac:node-sass saratankard$ ls
CONTRIBUTING.md README.md appveyor.yml binding.gyp media scripts test
LICENSE TROUBLESHOOTING.md bin lib package.json src
SartanMac:node-sass saratankard$ node
> var r = require('node-sass')
Error: Cannot find module 'node-sass'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at repl:1:9
at REPLServer.defaultEval (repl.js:132:27)
at bound (domain.js:254:14)
at REPLServer.runBound [as eval] (domain.js:267:12)
at REPLServer.<anonymous> (repl.js:279:12)
at REPLServer.emit (events.js:107:17)
>
----------------npm install node-sass@beta error output------------------------
SartanMac:temp2 saratankard$ npm install node-sass@beta
> [email protected] postinstall /Users/saratankard/temp2/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall
-
> [email protected] install /Users/saratankard/temp2/node_modules/node-sass
> node scripts/install.js
Binary downloaded and installed at /Users/saratankard/temp2/node_modules/node-sass/vendor/darwin-x64-14/binding.node
> [email protected] postinstall /Users/saratankard/temp2/node_modules/node-sass
> node scripts/build.js
` /Users/saratankard/temp2/node_modules/node-sass/vendor/darwin-x64-14/binding.node ` exists.
testing binary.
Problem with the binary.
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli '/Users/saratankard/temp2/node_modules/node-sass/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 [email protected]
gyp info using [email protected] | 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 F (/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb `which` failed at E (/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb `which` failed at /Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb `which` failed python2 [Error: not found: python2]
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 `python -c "import platform; print(platform.python_version());"` returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/temp2/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/saratankard/temp2/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/saratankard/temp2/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/saratankard/temp2/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/saratankard/temp2/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/Users/saratankard/temp2/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/saratankard/temp2/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/.node-gyp/0.12.7/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/saratankard/.node-gyp/0.12.7',
gyp info spawn args '-Dnode_gyp_dir=/Users/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/saratankard/temp2/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=.' ]
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/saratankard/temp2/node_modules/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/temp2/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/saratankard/temp2/node_modules/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "node-sass@beta"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/saratankard/temp2/npm-debug.log
Thanks @gecko25 , that's more than helpful.
Let's continue with the checked-out copy of node-sass from git.
Can you edit scripts/build.js file and change line 215 to:
console.log(['Problem with the binary.', e, 'Manual build incoming.'].join(eol));
(just insert "e, " in the middle)
or apply the following patch:
index ac62a22..2ddc46d 100644
--- a/scripts/build.js
+++ b/scripts/build.js
@@ -212,7 +212,7 @@ function testBinary(options) {
console.log('Binary is fine; exiting.');
} catch (e) {
- console.log(['Problem with the binary.', 'Manual build incoming.'].join(eol));
+ console.log(['Problem with the binary.', e, 'Manual build incoming.'].join(eol));
return build(options);
}
After this, try to run node scripts/install.js from your node-sass directory and post the output.
Thanks again @saper.
Short answer to your question is the output it gave me is:
Binary downloaded and installed at /Users/saratankard/node-sass/vendor/darwin-x64-14/binding.node
Other notes.. may worth some value(?):
After I made the changes to the build.js file and attempted to run node scripts/install.js I was missing some modules... Originally I did an npm install to try and install everything I needed from package.json, but when I did this I got a lot of messy error output-- seemingly identical to the error messages I have been originally posting.
After being discouraged by messy output, I instead npm installed each package as need until the command ran and it gave me the output of what you are looking for.
Installing the modules one by one output:
SartanMac:~ saratankard$ cd node-sass
SartanMac:node-sass saratankard$ vi scripts/build.js
SartanMac:node-sass saratankard$ node scripts/install.js
module.js:338
throw err;
^
Error: Cannot find module 'mkdirp'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/saratankard/node-sass/scripts/install.js:7:13)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
SartanMac:node-sass saratankard$ npm install mkdirp
[email protected] node_modules/mkdirp
└── [email protected]
SartanMac:node-sass saratankard$ node scripts/install.js
module.js:338
throw err;
^
Error: Cannot find module 'npmconf'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/saratankard/node-sass/scripts/install.js:8:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
SartanMac:node-sass saratankard$ npm install npmconf
[email protected] node_modules/npmconf
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected]
SartanMac:node-sass saratankard$ node scripts/install.js
module.js:338
throw err;
^
Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/saratankard/node-sass/scripts/install.js:10:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
SartanMac:node-sass saratankard$ npm install request
[email protected] node_modules/request
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])
SartanMac:node-sass saratankard$ node scripts/install.js
Binary downloaded and installed at /Users/saratankard/node-sass/vendor/darwin-x64-14/binding.node
Installing the modules using npm install output
SartanMac:node-sass saratankard$ npm install
> [email protected] postinstall /Users/saratankard/temp4/node-sass/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall
npm WARN prefer global [email protected] should be installed with -g
> [email protected] install /Users/saratankard/temp4/node-sass
> node scripts/install.js
Binary downloaded and installed at /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
> [email protected] postinstall /Users/saratankard/temp4/node-sass
> node scripts/build.js
` /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node ` exists.
testing binary.
Problem with the binary.
Error: dlopen(/Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node, 1): Symbol not found: __ZNKSt3__119__shared_weak_count13__get_deleterERKSt9type_info
Referenced from: /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
Expected in: flat namespace
in /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
Manual build incoming.
Building: /usr/local/bin/node /Users/saratankard/temp4/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ '/usr/local/bin/node',
gyp verb cli '/Users/saratankard/temp4/node-sass/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 [email protected]
gyp info using [email protected] | 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 F (/Users/saratankard/temp4/node-sass/node_modules/node-gyp/node_modules/which/which.js:73:28)
gyp verb `which` failed at E (/Users/saratankard/temp4/node-sass/node_modules/node-gyp/node_modules/which/which.js:76:29)
gyp verb `which` failed at /Users/saratankard/temp4/node-sass/node_modules/node-gyp/node_modules/which/which.js:84:16
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:95:15)
gyp verb `which` failed python2 [Error: not found: python2]
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 `python -c "import platform; print(platform.python_version());"` returned: "2.6.1\n"
gyp verb get node dir no --target version specified, falling back to host node version: 0.12.7
gyp verb command install [ '0.12.7' ]
gyp verb install input version string "0.12.7"
gyp verb install installing version: 0.12.7
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 0.12.7
gyp verb build dir attempting to create "build" dir: /Users/saratankard/temp4/node-sass/build
gyp verb build dir "build" dir needed to be created? /Users/saratankard/temp4/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/saratankard/temp4/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/saratankard/temp4/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/saratankard/temp4/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/Users/saratankard/temp4/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/saratankard/temp4/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/temp4/node-sass/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/saratankard/.node-gyp/0.12.7/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/saratankard/.node-gyp/0.12.7',
gyp info spawn args '-Dnode_gyp_dir=/Users/saratankard/temp4/node-sass/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/Users/saratankard/temp4/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=.' ]
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/saratankard/temp4/node-sass/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 10.8.0
gyp ERR! command "/usr/local/bin/node" "/Users/saratankard/temp4/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/saratankard/temp4/node-sass
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 10.8.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/saratankard/temp4/node-sass/npm-debug.log
Sorry, I didn't realize you didn't have dependencies there from the previous npm install.
The error message I was looking for was this:
Error: dlopen(/Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node, 1): Symbol not found: __ZNKSt3__119__shared_weak_count13__get_deleterERKSt9type_info
Referenced from: /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
Expected in: flat namespace
in /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
Thanks @gecko25, this will not be trivial to solve.
Can you give me the output of the following commands:
otool -L `which node`
otool -L /Users/saratankard/temp4/node-sass/vendor/darwin-x64-14/binding.node
(or wherever your binding.node ended up).
@xzyfer Looks like we have an issue with MacOSX binaries. Most probably our old problem with mixing libstdc++ and libc++ is haunting us again. Did we ever test them on a machine without Xcode installed?
One last chance for a workaround: @gecko25 do you have recent Xcode installed? Does installing a recent Xcode fix the issue? (at least command line tools - we only might need C++ runtime libraries)
@saper I am trying the same with node version 4.0.0; npm 2.14.2 and also have the latest version of XCode (Version 7.0 (7A220)). But still getting the same error "Error: The libsass binding was not found in /node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
"
@mgkamal you're getting new error because you haven't rebuilt the binary for your new runtime (node 4). Run npm rebuild node-sass.
@mgkamal this us a different issue, please follow out troubleshooting document and open a new one.
Okay @saper it is working now. Solution: upgrade my OS. I upgraded to Yosemite 10.10.5
Notes:
My command line did not recognize the command otool.. so I could not give the output you asked for.
And when I went to upgrade my xcode, I couldn't do so because my OS was so old. Soo.. I upgraded. I didn't realize you could do this for free or I would have a long time ago! I am a semi-new mac user.
After the upgrade I ran a npm install node-sass and had a successful installation.
I do not believe this was a bug with node-sass. Before the upgrade, I also tried to run npm install gulp-nodemon and got the same installation error. I am not sure what weird state my computer got itself into (as I had previously installed gulp-nodemon with 10.6 for an earlier project with no problems)... but it seems that it was not something to do with node-sass.
Thank you so much for supporting me so responsively to try and resolve this... even if in the end it was just a good ole upgrade and restart that resolved everything.
Yes, I think we've had some effort to support users on "Maverick" (10.9) but this one looks like definitely too old, it comes without a good C++11 library. Happy that it works for you now!
@saper / @xzyfer I did "npm rebuild node-sass", but didn't work. Also tried, "npm remove node-sass" and then "npm install node-sass". Same error.
My MAC OS: Yosemite 10.10.5 (14F27)
Error details:
/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:150
throw new Error([
^
Error: The libsass binding was not found in /node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-14/binding.node
@mgkamal Please follow steps in https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md and open a new issue if the issue still persists. Thanks.
@mgkamal I had the same issue, but then I updated my node to current stable (which I had totally forgotten about) and my npm and it worked.