{"action":"closed","issue":{"url":"https://api.github.com/repos/webpack/webpack-cli/issues/283","repository_url":"https://api.github.com/repos/webpack/webpack-cli","labels_url":"https://api.github.com/repos/webpack/webpack-cli/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-cli/issues/283/comments","events_url":"https://api.github.com/repos/webpack/webpack-cli/issues/283/events","html_url":"https://github.com/webpack/webpack-cli/issues/283","id":300020211,"number":283,"title":"Cannot find module '*/node_modules/webpack-dev-server/cli.js","user":{"login":"chenxsan","id":1091472,"avatar_url":"https://avatars1.githubusercontent.com/u/1091472?v=4","gravatar_id":"","url":"https://api.github.com/users/chenxsan","html_url":"https://github.com/chenxsan","followers_url":"https://api.github.com/users/chenxsan/followers","following_url":"https://api.github.com/users/chenxsan/following{/other_user}","gists_url":"https://api.github.com/users/chenxsan/gists{/gist_id}","starred_url":"https://api.github.com/users/chenxsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenxsan/subscriptions","organizations_url":"https://api.github.com/users/chenxsan/orgs","repos_url":"https://api.github.com/users/chenxsan/repos","events_url":"https://api.github.com/users/chenxsan/events{/privacy}","received_events_url":"https://api.github.com/users/chenxsan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-25T11:57:39Z","updated_at":"2018-02-25T14:27:49Z","closed_at":"2018-02-25T14:27:49Z","author_association":"NONE","body":"Moved from https://github.com/webpack/webpack-dev-server/issues/1320\r\n<!--\r\n  Please note that this template is not optional.\r\n  Please fill out _ALL_ fields, or your issue may be closed as \"invalid.\"\r\n  Please do not delete this template.\r\n  Please ask questions on StackOverflow or Gitter (https://gitter.im/webpack/webpack).\r\n  General questions, how-to questions, and support requests will be closed.\r\n-->\r\n\r\n* Operating System: macOS 10.13.3\r\n* Node Version: 8.9.3\r\n* NPM Version: 5.6.0\r\n* webpack Version: 4.0.0\r\n* webpack-dev-server Version: webpack-dev-server 3.0.0\r\n\r\n<!--\r\n  Please place an x, no spaces, in all [ ] that apply\r\n  Please note that we are NOT accepting FEATURE requests at this time.\r\n-->\r\n\r\n- [x] This is a **bug**\r\n- [ ] This is a **modification** request\r\n\r\n### Code\r\n\r\nPlease check my github [repo](https://github.com/chenxsan/webpack-dev-server-demo)\r\n\r\n<!--\r\n  If you have a large amount of code to share which demonstrates the problem\r\n  you're experiencing, or your webpack config is very large, please provide a link\r\n  to your repository rather than pasting code. We'd also encourage you to use a\r\n  Github Gist link instead of pasting code. Otherwise, please paste relevant\r\n  short snippets below.\r\n\r\n  For bugs, please do consider providing a link to a stripped-down, bare-bones\r\n  repo that can reproduce the problem you're experiencing. Many times, bugs\r\n  aren't actual bugs, but rather specific issues with loaders, plugins, or\r\n  an environment/OS. Problems with complicated or large applications will almost\r\n  always require this to be triaged.\r\n-->\r\n\r\n### Expected Behavior\r\n\r\n### Actual Behavior\r\n\r\n### For Bugs; How can we reproduce the behavior?\r\n\r\n1. Clone https://github.com/chenxsan/webpack-dev-server-demo\r\n2. Run `npx webpack serve`\r\n\r\n```\r\nnpx webpack serve\r\n\r\n✖ We didn't find any webpack-dev-server dependency in your project,\r\n  'webpack serve' requires you to have it installed \r\n\r\n? Do you want to install it? (default: Y) Yes\r\n? What kind of dependency do you want it to be under? (default: devDependency) devDependency\r\nnpm WARN rm not removing /Users/sam/tmp/webpack-dev-server-demo/node_modules/fsevents/node_modules/.bin/node-pre-gyp as it wasn't installed by /Users/sam/tmp/webpack-dev-server-demo/node_modules/fsevents/node_modules/node-pre-gyp\r\n\r\n> fsevents@1.1.3 install /Users/sam/tmp/webpack-dev-server-demo/node_modules/fsevents\r\n> node install\r\n\r\n[fsevents] Success: \"/Users/sam/tmp/webpack-dev-server-demo/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node\" already installed\r\nPass --update-binary to reinstall or --build-from-source to recompile\r\nnpm WARN webpack-dev-server@3.0.0 requires a peer of webpack@^4.0.0-beta.1 but none is installed. You must install peer dependencies yourself.\r\nnpm WARN webpack-dev-server-demo@1.0.0 No description\r\nnpm WARN webpack-dev-server-demo@1.0.0 No repository field.\r\n\r\n+ webpack-dev-server@3.0.0\r\nadded 240 packages, removed 531 packages and updated 341 packages in 10.196s\r\n✖ Serve aborted due to some errors\r\n{ Error: Cannot find module '/Users/sam/tmp/webpack-dev-server-demo/node_modules/webpack-dev-server/cli.js'\r\n    at Function.Module._resolveFilename (module.js:536:15)\r\n    at Function.Module._load (module.js:466:25)\r\n    at Module.require (module.js:579:17)\r\n    at require (/Users/sam/tmp/webpack-dev-server-demo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)\r\n    at serve (/Users/sam/tmp/webpack-dev-server-demo/node_modules/webpack-cli/lib/commands/serve.js:89:10)\r\n    at processPromise.then._ (/Users/sam/tmp/webpack-dev-server-demo/node_modules/webpack-cli/lib/commands/serve.js:150:16)\r\n    at <anonymous> code: 'MODULE_NOT_FOUND' }\r\n```\r\n\r\n### For Features; What is the motivation and/or use-case for the feature?\r\n"}}
{"actor":{"display_login":"chenxsan"}}