Prisma1: ENOENT: No such file or directory, stat when running add-template

Created on 20 Oct 2017  Â·  10Comments  Â·  Source: prisma/prisma1

Current behavior

Downloading template graphcool/templates/authentication/email-password from graphcool/templates ... ✔ Path /Users/peter/Projects/tallydrinks/tally-graphcool/src/email-password/ already exists. Overwriting it now. ▸ 'ENOENT': ENOENT: no such file or directory, stat ▸ '/var/folders/_8/y755ywd94_l4pc8ymg8kmjh00000gn/T/cj8z5exny00004i3zkub6x38n/authentication/email-password/src'

The items that are supposed to be commented out are not there.

Reproduction

graphcool add-template graphcool/templates/auth/email-password

If your problem can be reproduced with a certain service definition, please create a new GitHub repository with the reproduction instructions.

Expected behavior?

Template downloads to folder. Items are in commented out in file.

bu2-confirmed arecli

All 10 comments

@peterpme The command output seems to indicate using a different path to add the template. Are you sure the reproduction steps are correct?

Yes, copied it exactly from the documentation

Which documentation? What was the command you executed?

I can't reproduce this:

graphcool init
graphcool add-template graphcool/templates/auth/email-password

works just fine. then running

graphcool add-template graphcool/templates/auth/email-password

again, works too:

image

'/var/folders/_8/y755ywd94_l4pc8ymg8kmjh00000gn/T/cj8z5exny00004i3zkub6x38n/authentication/email-password/src'

looks to be an issue with an older downloaded template 🤔

hm ok, maybe!

I upgraded a project, downloaded it and ran it. Perhaps that will do it?

Is there any way I can reset something I my end?

Thanks again!!!

What's your graphcool version?

0.7.0

Aw, could you upgrade to 0.8.0? I think that's the problem 🙂

npm install -g graphcool@next

It was just released.

gah, could have sworn I did! Thanks 😘

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marktani picture marktani  Â·  3Comments

marktani picture marktani  Â·  3Comments

marktani picture marktani  Â·  3Comments

ragnorc picture ragnorc  Â·  3Comments

jannone picture jannone  Â·  3Comments