Skip to content

Running test set up throwing error message #10

Closed
@shellhatcher

Description

@shellhatcher

Hi,

I tried to run the code given for the test set up purpose using node test/todo-app.test.js
that should return nothing, but I got the following error messages
internal/modules/cjs/loader.js:615
throw err;
^

Error: Cannot find module 'tape'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15)
at Function.Module._load (internal/modules/cjs/loader.js:539:25)
at Module.require (internal/modules/cjs/loader.js:667:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/Users/babydust/Desktop/todolist_mvc/test/todo-app.test.js:1:76)
at Module._compile (internal/modules/cjs/loader.js:738:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10)
at Module.load (internal/modules/cjs/loader.js:630:32)
at tryModuleLoad (internal/modules/cjs/loader.js:570:12)
at Function.Module._load (internal/modules/cjs/loader.js:562:3)

What might cause this problem to occur?
Thank you in advance for your assistance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions