-
Notifications
You must be signed in to change notification settings - Fork 5
patternlab init throws an error #28
Comments
First up, thanks for helping us test the CLI. It's important for more 👀 to get on it. I did some testing too. I cannot even run If I ... more testing ... okay, so I added a |
and @benhalverson can you try adding |
Heres the new error for patterlab init
|
@bmuenzenmeyer
|
A ha! thanks for the additional troubleshooting.
Interesting that you have to install the cli locally in order for it to work. My theory with the previous stack trace was that pattern_engines was failing because it could not find the default mustache pattern engine, which was installed along with the cli and core library in your global locations, rather than the current working directory |
@benhalverson @bmuenzenmeyer Thanks for the report.Can we create a minimal test case for this. From what I read is that you install the cli globally and then try to run |
Okay, I was able to reproduce the error:
This is a bug. |
Okay, so far what I get from looking into the issues around global cli is that the core's postinstall isn't run for me after installing the cli. When I try to manually run the core's postinstall from the global cli I get:
@bmuenzenmeyer any ideas? |
it's failing because pattern_engines is not looking for potentially globally installed engines. We need to research how to look for globally installed packages. Or does .... doing some quick research, it seems that expecting modules to be installed globally is not a good idea, and it's best to put your dependencies into the local Does this fundamentally change the CLI then, or am I misreading something? |
What do you refer to by
I do not think so :-) CLI is should be pretty agnostic for such things.
AFAIK |
Closing as this is a won't fix for global installs until we hit #32 |
this should be in readme.md |
@leualemax You are right. Thanks for pointing it out. |
General information
patternlab init throws an error
OSX version 10.10.5
Problem description
After running patternlab init I get the following error:
The text was updated successfully, but these errors were encountered: