Skip to content

npm i -g preact-cli => Error: Cannot find module 'config/donation-message.js' #342

@rvion

Description

@rvion

Do you want to request a feature or report a bug?

BUG

What is the current behavior?

npm i -g preact-cli

[...]
> [email protected] postinstall /usr/local/lib/node_modules/preact-cli/node_modules/preact
> node ./config/donation-message.js

module.js:471
    throw err;
    ^

Error: Cannot find module '/usr/local/lib/node_modules/preact-cli/node_modules/preact/config/donation-message.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:508:3

Please mention other relevant information.

  • node -v v6.10.2
  • npm -v 3.10.10 (bug also happens with latest yarn)
  • osx

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