scottmcpherson / meteor-io

A Command-line Tool for Meteor to Create Custom Commands, Generators, and Scaffolding
59 stars 5 forks source link

ENOENT: config.json' on Windows #9

Open rfox90 opened 8 years ago

rfox90 commented 8 years ago

Node.js latest stable 5.0.0

First we need to set up an io directory.

Specify a directory where you would like to store your generators, templates, an
d config.

Directory: ./

Created dir:  io
Created dir:  io\templates
Created dir:  io\generators
Created dir:  io\.io

{ [Error: ENOENT: no such file or directory, stat 'D:\AppData\Roaming\npm\node_m
odules\meteor-io\bin\lib\templates\templates\config.json']
  errno: -4058,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'D:\\AppData\\Roaming\\npm\\node_modules\\meteor-io\\bin\\lib\\templates
\\templates\\config.json' }

Let me know if you need anything doing to figure this out :D

scottmcpherson commented 8 years ago

Hey @rfox90, does that directory already exist? io expects you to pass it an existing directory. I know it's kind of confusing and I'll get that fixed on the next release,

https://github.com/scottmcpherson/meteor-io/issues/8

rfox90 commented 8 years ago

I specified ./ so the target directory exists yes.

Contents of the folder path its looking for are weird though

http://i.ahref.co.uk/u/r/KA0j.png

scottmcpherson commented 8 years ago

Ok, thanks @rfox90. I looks like it can't find the config file for some reason. Does this file exist? \node_m odules\meteor-io\bin\lib\templates\templates\config.json

rfox90 commented 8 years ago

as indicated in my prior response: D:\AppData\Roaming\npm\node_modules\meteor-io\bin\

which its looking in. is pictured above.