json yarn webpack:找不到命令“webpack”。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json yarn webpack:找不到命令“webpack”。相关的知识,希望对你有一定的参考价值。

{
  "name": "advanced",
  "version": "1.0.0",
  "description": "Advanced Rect",
  "main": "lib/server.js",
  "author": "Oliver Mensah",
  "license": "MIT",
  "scripts": {
    "dev": "pm2 start lib/server.js  --watch",
    "wepback": "webpack -wd"
  },
  "devDependencies": {
    "babel-eslint": "^7.2.3",
    "eslint": "^4.5.0",
    "eslint-plugin-react": "^7.3.0"
  },
  "dependencies": {
    "babel-loader": "^7.1.2",
    "ejs": "^2.5.7",
    "express": "^4.15.4",
    "pm2": "^2.6.1",
    "react": "^15.6.1",
    "react-dom": "^15.6.1",
    "wepback": "^1.0.0"
  }
}

以上是关于json yarn webpack:找不到命令“webpack”。的主要内容,如果未能解决你的问题,请参考以下文章

从 npm 迁移到 Yarn 2 PnP:ts-loader 找不到 webpack

运行 webpack:找不到 Webpack 命令 [重复]

通过 npm 安装后找不到 yarn 命令

使用 Symfony 和 Webpack 找不到 tarteaucitronjs

生成package.json文件报错“系统找不到指定的路径”

生成package.json文件报错“系统找不到指定的路径”