Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`mrt add` throws unknown error when installing Atmosphere packages with Vagrant on Windows

Using Vagrant ssh on Windows 7, mrt add scss (as an example) displays the following in the console:

vagrant@vagrant:/vagrant/MyMeteorApp$ mrt add scss
scss
    tag: https://github.com/fourseven/meteor-scss.git#v0.5.1.1

fs.js:730
  return binding.symlink(preprocessSymlinkDestination(destination, type),
                 ^
Error: UNKNOWN, unknown error '/vagrant/MyMeteorApp/packages/scss'
    at Object.fs.symlinkSync (fs.js:730:18)
    at /usr/local/lib/node_modules/meteorite/lib/dependencies/package.js:129:10
    at /usr/local/lib/node_modules/meteorite/lib/sources/git.js:75:15
    at ProxyWriter.<anonymous> (/usr/local/lib/node_modules/meteorite/lib.souces/git.js:138:5)
    at DirWriter.EventEmitter.emit (events.js:92:17)
    at end (/usr/local/lib/node_modules/meteorite/node_modules/fstream/lib/writer.js:323:12)
    at /usr/local/lib/node_modules/meteorite/node_modules/fstream/lib/writer.js:313:32
    at endUtimes (/usr/local/lib/node_modules/meteorite/node_modules/fstream/lib/writer.js:239:48
    at setProps (/usr/local/lib/node_modules/meteorite/node_modules/fstream/lib/writer.js:296:5)

The same error is displayed when attempting to install any Atmosphere package the first time. The command does update "packages" in smart.json:

"packages": {
  "scss": {}
}

Whenever mrt is run again, the console displays smart.json changed.. installing from smart.json and hangs.
I did find the package at /home/vagrant/.meteorite/packages/scss but it is nowhere else.

My environment was set up using the Vagrant Chef provisioning. Node is version 0.10.10. The OS is Ubuntu. I have tried reinstalling meteorite using the -H command.

Any help is appreciated, I've been trying to get this to work for two days now.

like image 783
Fallexe Avatar asked Jun 08 '13 22:06

Fallexe


1 Answers

I think that's the problem. Meteorite 0.6.0 uses symlinks but Windows can't handle it. Try copying the sass folder into packages instead of making them symlinks. Some packages you will need to copy with cp -rL

like image 94
gabrielhpugliese Avatar answered Nov 05 '22 02:11

gabrielhpugliese