Open andrei-popa opened 9 years ago
Same here
Command failed: /bin/sh -c "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/resources/app/apm/bin/node" "/Users/andre/.atom/packages/compile-watch/node_modules/node-sass/bin/node-sass" "/Users/andre/Sites/PageTemplate/scss/styles.scss" "/Users/andre/Sites/PageTemplate/css/styles.css" /bin/sh: /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/resources/app/apm/bin/node: No such file or directory
Looks like the node binary isn't in the same place in MacOS as it is in Windows.
Could you run: which apm
to find your apm location and post it here please?
And could you see if there is a node binary in the same folder?
seems the path is /usr/local/bin/apm yes, the node binary is also in /usr/local/bin/
I will update the binary default to change per os but for now you can get it working by going into settings -> Packages -> compile-watch settings and changing Node Binary to /usr/local/bin/node
great, that did the trick! thank you!
I changed my Node Binary to /usr/local/bin/node... Unfortunately I still get this error:
Command failed: /bin/sh -c "/usr/local/bin/node" "/Users/mt/.atom/packages/sass-watch/node_modules/node-sass/bin/node-sass" "/Users/mt/Desktop/css/login.scss" "/Users/mt/Desktop/css/login.css"
module.js:355
Module._extensions[extension](this, filename);
^
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.
@tscheikm That is odd, what node version is your system binary?
That error is what you get if you try and require node-sass
in atom (hence why I used a child_process) but I didn't think you could get it when running the cli tool.
/bin/sh: /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/resources/app/apm/bin/node: No such file or directory