Skip to content

.gitignore not coming through #2

Description

@danshumaker

After installing the repo with npm via

npm install -g https://github.com/activelamp/generator-drupalal.git

and then doing a "yo drupalal" I get this error:

? Would version of Drupal are you developing on? 8.0.x

events.js:154
      throw er; // Unhandled 'error' event
      ^
AssertionError: Trying to copy from a source that does not exist: /usr/local/lib/node_modules/generator-drupalal/app/templates/.gitignore
    at EditionInterface.exports._copySingle (/usr/local/lib/node_modules/generator-drupalal/node_modules/mem-fs-editor/actions/copy.js:45:3)
    at EditionInterface.exports.copy (/usr/local/lib/node_modules/generator-drupalal/node_modules/mem-fs-editor/actions/copy.js:23:17)
    at module.exports.generators.Base.extend.writing.app (/usr/local/lib/node_modules/generator-drupalal/app/index.js:135:15)
    at /usr/local/lib/node_modules/generator-drupalal/node_modules/yeoman-generator/lib/base.js:430:16
    at processImmediate [as _immediateCallback] (timers.js:383:17)

And when I looked in the /usr/local/lib/node_modules/generator-drupalal/app/templates directory, indeed there is no .gitignore. I do notice that it IS in the repo here https://github.com/activelamp/generator-drupalal/blob/master/app/templates/.gitignore

So for some reason npm is not pulling it through/into the right place. Not sure why.

To test a fix I just touched a .gitignore file in the right directory and then the "yo drupalal" command worked. (albeit with this error: make: bundle: No such file or directory).

Thanks a million for your hard work and opening up this repo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions