Skip to content

Cannot find module 'power-assert' #3

Description

@mysticatea

README.md does not say requires installing power-assert, but I encountered the error: Cannot find module 'power-assert'.
Do I need to install power-assert also?

# I have installed `babel-cli` to global before in order to try small things.
> npm i -g node-cli

# Now I have installed `babel-preset-power-assert` to use it in the test of this module.
> npm i -D babel-register babel-preset-power-assert

# I tried a small experiment with `babel-node` in global.
> babel-node --presets power-assert try.js
module.js:440
    throw err;
    ^

Error: Cannot find module 'power-assert'
    at Function.Module._resolveFilename (module.js:438:15)
    at Function.Module._load (module.js:386:25)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (try.js:12:16)
    at Module._compile (module.js:541:32)
    at loader (C:\Users\t-nagashima.AD\nodist\bin\node_modules\babel-cli\node_modules\babel-register\lib\node.js:158:5)
    at Object.require.extensions.(anonymous function) [as .js] (C:\Users\t-nagashima.AD\nodist\bin\node_modules\babel-cli\node_modules\babel-register\lib\node.js:168:7)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)

  • Node 6.1.0
  • npm 3.7.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions