mojotech / sass2stylus

Kewl
http://sass2stylus.com/
79 stars 18 forks source link

Fail in MacOS 10.9 #54

Closed DeLaGuardo closed 9 years ago

DeLaGuardo commented 10 years ago
Converting Sass to Stylus
{ [Error: Command failed: /bin/sh -c ruby /usr/local/lib/node_modules/sass2stylus/node_converter.rb search.css.sass
/usr/local/lib/node_modules/sass2stylus/node_converter.rb:1:in `load': cannot load such file -- ruby_converter.rb (LoadError)
    from /usr/local/lib/node_modules/sass2stylus/node_converter.rb:1:in `<main>'
]
  killed: false,
  code: 1,
  signal: null,
  cmd: '/bin/sh -c ruby /usr/local/lib/node_modules/sass2stylus/node_converter.rb search.css.sass' }

Maybe use require_relative method for loading code from file. It works for me.

samccone commented 10 years ago

thanks for filing this @DeLaGuardo Shall get this resolved.

samccone commented 10 years ago

fixed in #60 doing a new release now.

samccone commented 10 years ago

@DeLaGuardo can you install again and try

BerkeleyTrue commented 10 years ago

I am having this same issue.

Converting Sass to Stylus
{ [Error: Command failed: /usr/local/lib/node_modules/sass2stylus/node_converter.rb:1:in `load': cannot load such file -- to_stylus.rb (LoadError)
    from /usr/local/lib/node_modules/sass2stylus/node_converter.rb:1:in `<main>'
] killed: false, code: 1, signal: null }

OSX 10.9.4 ruby 2.0.0p451 node 0.10.29

sass2stylus installed from github, but had the same issue with the npm version.

lordnox commented 9 years ago

Hi, I currently have the same issue

{ [Error: Command failed: XXX/node_modules/sass2stylus/node_converter.rb:1:in `load': cannot load such file -- to_stylus.rb (LoadError)
lordnox commented 9 years ago
require_relative 'to_stylus.rb'

puts ToStylus::convert(ARGV[0])

solved the issue. (and installing sass-gem afterwards)