Skip to content

npm create pattern-lab with edition twig throws an error and hangs #1257

@joville

Description

@joville

I am using Pattern Lab Node v.5.13.1 on Mac, with Node v14.9 (also in earlier node version vom v12 on), using the Twig Edition.

Expected Behavior

Clean install of the pattern-lab twig demo in any directory

Actual Behavior

Installation of the twig edition throws actually an error and hangs.

⠦ ⊙ patternlab → Installing edition: @pattern-lab/edition-twig(node:66426) UnhandledPromiseRejectionWarning: Error: Cannot find module '@pattern-lab/edition-twig/package.json'
Require stack:
- /Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/core/src/lib/resolver.js
- /Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/cli/bin/utils.js
- /Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/cli/bin/ask.js
- /Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/cli/bin/cli-actions/init.js
- /Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
    at Function.resolve (internal/modules/cjs/helpers.js:94:19)
    at resolveFileInPackage (/Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/core/src/lib/resolver.js:10:18)
    at resolvePackageFolder (/Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/core/src/lib/resolver.js:18:23)
    at resolveDirInPackage (/Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/core/src/lib/resolver.js:26:20)
    at /Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/cli/bin/install-edition.js:38:7
    at Generator.next (<anonymous>)
    at spwn (/Users/Joville/.npm/_npx/66125/lib/node_modules/create-pattern-lab/node_modules/@pattern-lab/cli/bin/utils.js:75:25)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:66426) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:66426) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
⠦ ⊙ patternlab → Installing edition: @pattern-lab/edition-twig
Steps to Reproduce
  1. npm create pattern-lab
  2. ? Please specify a directory for your Pattern Lab project. ./
  3. ? What templating language do you want to use with Pattern Lab? Twig (PHP)
  4. ? What initial patterns do you want included in your project? Twig (PHP) demo patterns (full demo website and patterns)
  5. ? Are you happy with your choices? (Hit enter for YES)? Yes

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions