cfpb / generator-cf

Yeoman generator for Capital Framework
http://cfpb.github.io/capital-framework/getting-started/
Creative Commons Zero v1.0 Universal
9 stars 13 forks source link

Updated contributing #142

Closed jimmynotjim closed 6 years ago

jimmynotjim commented 6 years ago

NPM requires that you symlink the component you need in the directory you plan on using it. Updated the directions to include that step.

Changes

Testing

anselmbradford commented 6 years ago

Really? This worked for me without that step

jimmynotjim commented 6 years ago

It didn't work for me till I also symlinked in the other directory. See this comment in the NPM docs

Package linking is a two-step process.

jimmynotjim commented 6 years ago

Here's the error I get without symlinking in the test directory (this is a fresh directory)

screen shot 2018-03-02 at 2 12 06 pm

and after linking

screen shot 2018-03-02 at 2 13 00 pm
Scotchester commented 6 years ago

@jimmynotjim Is it possible you hadn't npm install -g generator-cf? I think if it's globally installed you don't need to link where you want to use it.

Scotchester commented 6 years ago

I was just able to test #143 without running npm link generator-cf in my test directory.

jimmynotjim commented 6 years ago

Ohhh weird, I removed the link, and made sure it was installed globally, but a brand new directory is saying I don't have it installed. There must be something else wrong with my setup, but it's not immediately clear what it is.