Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

Cannot find module 'tapable' #107

Open

Description

@jcalfee

In follwing README.md on ubuntu 14.04 skipping only vagrant commands, I get npm installed but seem to be missing dependancies. This is the first missing dependency:

npm run dev-server

> react-starter@0.0.0 dev-server /home/jcalfee/react-starter
> webpack-dev-server --config webpack-dev-server.config.js --progress --colors --port 2992 --inline

module.js:336
    throw err;
    ^
Error: Cannot find module 'tapable'

Activity

  1. HosseinAgha commented on May 8, 2016

    @HosseinAgha

    same problem here
    I'm using react 0.14.8 with webpack-dev-server 1.14.1

  2. shaimr commented on May 26, 2016

    @shaimr

    If you rm -rf node_modules and run npm install it will work.
    But I don't understand why it happened.

  3. imtmh commented on Mar 1, 2017

    @imtmh

    I did rm -rf node_modules and run npm install, still not working for me :(

  4. AlexSwensen commented on Jul 10, 2017

    @AlexSwensen

    I would try running this to see what happens.

    npm cache clear --force
    rm -rf node_modules
    npm install
    

    I ran into this recently in a CI env. Clearing everything and installing from scratch (with the above steps) fixed it for me.
    Tested in NPM 5.1.0
    Assuming you have webpack installed correctly with its dependencies, this should work fine.

  5. waltiam commented on Jul 18, 2017

    @waltiam

    @AlexSwensen thanks, that three step process cleared the error. Which is funny (funny euw?, not funny haha) 'cause this is a new project and all the pieces were just installed ...

  6. AlexSwensen commented on Jul 18, 2017

    @AlexSwensen

    @Walt-D-Cat Yeah, it has something to do with the npm cache getting in a strange state in 5.1.0. (NPM stores a separate cache in addition to node_moduels)

    I usually recommend just checking the latest version of npm with npm install -g npm@latest (you may need sudo if your permissions aren't set up correctly)

    NPM 5 has some great (but new) changes. It's going to take some time for the rest of the Node ecosystem to catch up. I'm sure when Node 8 goes LTS with NPM 5 included it will help a lot. That is still a few months out though.

    Best of luck!

  7. thodges314 commented on Jul 18, 2017

    @thodges314

    Helped me also, thanks!

  8. jefflueck commented on Sep 12, 2017

    @jefflueck

    I did this and now it says that the express module is missing. The app crashes on server.js command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions