Open Amidcrescentsuns opened 8 years ago
Anyone? Please? Will paypal/venmo some $ for anyone who can solve this
From viewing the first line of the log it looks like you Node.js version might be a good starting point:
npm WARN engine nodetunes@0.3.0: wanted: {"node":"0.12.x"} (current: {"node":"0.10.33","npm":"1.4.28"})
I would suggest trying with Node.js v0.12.16 as that's the last supported 0.X.X version. I use nvm to manage this on my mac and airsonos is working for me.
I have the wrong version of Node.js too. Because I need the latest for work. Is there any way to make it work on recent versions?
@dariusrosendahl the only way to get it working would be to update the dependencies to the latest versions. I would suggest forking the code, but it seems the developer may have abandoned this project, and two (nodetunes / nicercast) of the associated dependencies.
As I said above, your best bet is to use something like nvm to run two different versions of Node on your system.
you need to clean the NPM & node installations. This is due to missing dependencies. This helped me https://gist.github.com/DanHerbert/9520689
rm -rf /usr/local/lib/node_modules
brew uninstall node
brew install node --without-npm
echo prefix=~/.npm-packages >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sh
Hey guys, I have been struggling unsuccessfully to set up airsonos for the past few days. I am a complete amateur when it comes to working with npm/node/terminal in general, but I have learned a lot as I have attempted to work through this problem. Unfortunately I have hit a wall. I keep getting these errors and warnings when I attempt to install airsonos using
sudo npm install airsonos -g
. I am running OS X El Capitan 10.11.4 and node-v.0.10.33. Updating to the most recent node seemed to make the problem worse. I am definitely having some permission problems but I worked around these by using "sudo" as recommended by others in this forum. I've also attached pictures from my finder because I think maybe I have some files in the wrong place. Below is the error message I'm generating. Apologies if this is repetitive. Thanks for any help!`Peters-MacBook-Pro-2:~ peterolsen-harbich$ sudo npm install airsonos -g npm WARN engine nodetunes@0.3.0: wanted: {"node":"0.12.x"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN engine escodegen@1.8.1: wanted: {"node":">=0.12.0"} (current: {"node":"0.10.33","npm":"1.4.28"}) npm WARN deprecated static-favicon@1.0.2: use serve-favicon module npm WARN deprecated react-tools@0.13.3: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated
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
CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_browse.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_enumerate_domains.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_get_addr_info.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_process_result.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_deallocate.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_ref_sock_fd.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_register.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_resolve.o CXX(target) Release/obj.target/dns_sd_bindings/src/dns_service_update_record.o CXX(target) Release/obj.target/dns_sd_bindings/src/mdns_utils.o CXX(target) Release/obj.target/dns_sd_bindings/src/network_interface.o CXX(target) Release/obj.target/dns_sd_bindings/src/socket_watcher.o CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_ref.o CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_create.o CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_deallocate.o CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_set_value.o CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_get_length.o CXX(target) Release/obj.target/dns_sd_bindings/src/txt_record_buffer_to_object.o SOLINK_MODULE(target) Release/dns_sd_bindings.node SOLINK_MODULE(target) Release/dns_sd_bindings.node: Finished npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
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
CC(target) Release/obj.target/binding/ALAC/codec/EndianPortable.o CC(target) Release/obj.target/binding/ALAC/codec/ALACBitUtilities.o CXX(target) Release/obj.target/binding/ALAC/codec/ALACDecoder.o ../ALAC/codec/ALACDecoder.cpp:38:16: warning: unused variable 'kMaxBitDepth' [-Wunused-const-variable] const uint32_t kMaxBitDepth = 32; // max allowed b... ^ 1 warning generated. CXX(target) Release/obj.target/binding/ALAC/codec/ALACEncoder.o ../ALAC/codec/ALACEncoder.cpp:1216:38: warning: missing field 'compatibleVersion' initializer [-Wmissing-field-initializers] ALACSpecificConfig theConfig = {0}; ^ ../ALAC/codec/ALACEncoder.cpp:1217:49: warning: missing field 'mChannelBitmap' initializer [-Wmissing-field-initializers] ALACAudioChannelLayout theChannelLayout = {0}; ^ ../ALAC/codec/ALACEncoder.cpp:48:16: warning: unused variable 'kALACEncoderMagic' [-Wunused-const-variable] const uint32_t kALACEncoderMagic = 'dpge'; ^ ../ALAC/codec/ALACEncoder.cpp:94:23: warning: unused variable 'sSupportediPodSampleRates' [-Wunused-const-variable] static const uint32_t sSupportediPodSampleRates[] = ^ 4 warnings generated. CC(target) Release/obj.target/binding/ALAC/codec/ag_dec.o ../ALAC/codec/ag_dec.c:299:14: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int32_t' (aka 'int') [-Wsign-compare] while (c < numSamples) ~ ^
~~../ALAC/codec/ag_dec.c:333:44: warning: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int32_t' (aka 'int') [-Wsign-compare] if (((mb << MMULSHIFT) < QB) && (c < numSamples)) ~ ^~~../ALAC/codec/ag_dec.c:341:31: warning: comparison of integers of different signs: 'unsigned int' and 'int32_t' (aka 'int') [-Wsign-compare] RequireAction(c+n <= numSamples, status = kALAC_ParamError; ...