Skip to content

postinstall hook fails #2

Open
Open
@geoffreylitt

Description

@geoffreylitt

Running yarn install on a node project that depends on cambria results in this error:

error /Users/geoffreylitt/dev/arthropod2/arthropod/node_modules/cambria: Command failed.
Exit code: 127
Command: yarn run build
Arguments:
Directory: /Users/geoffreylitt/dev/arthropod2/arthropod/node_modules/cambria
Output:
yarn run v1.17.3
$ tsc --outDir ./dist

The problem is that we don't install dependencies before attempting to run yarn run build in the post-install hook.

Options:

  • replace yarn run build w/ a cross-platform-friendly version of yarn install && yarn run build (&& not windows-friendly)
  • put dist/ in git

I think this won't be a problem once we publish to npm -- I think we can publish dist to npm without putting it in source control.

Metadata

Metadata

Assignees

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