meteor-io icon indicating copy to clipboard operation
meteor-io copied to clipboard

ENOENT: config.json' on Windows

Open rfox90 opened this issue 9 years ago • 4 comments

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

rfox90 avatar Nov 17 '15 03:11 rfox90

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

scottmcpherson avatar Nov 18 '15 11:11 scottmcpherson

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

rfox90 avatar Nov 19 '15 04:11 rfox90

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

scottmcpherson avatar Nov 19 '15 12:11 scottmcpherson

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

which its looking in. is pictured above.

rfox90 avatar Nov 19 '15 18:11 rfox90