【发布时间】:2018-10-14 07:55:01
【问题描述】:
我一直在尝试卸载 webpack(因为它在我运行它时一直给我下面的文本),
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
- webpack-cli (https://github.com/webpack/webpack-cli)
The original webpack full-featured CLI.
- webpack-command (https://github.com/webpack-contrib/webpack-command)
A lightweight, opinionated webpack CLI.
We will use "npm" to install the CLI via "npm install -D".
Which one do you like to install (webpack-cli/webpack-command):
我尝试了什么?
- Installed webpack-cli
- Installed webpack-command
- $env:NODE_ENV="production" --> $env:NODE_ENV="dev" or $env:NODE_ENV="development"
- npm uninstall webpack
- npm uninstall webpack --save
- npm uninstall webpack --save-dev
- npm -g uninstall webpack --save
- npm install yarn // to see if webpack could be installed via yarn
- Installed back webpack several times
- $ npm cache clean --force at several points in between to see if cache was the issue.
我想做什么?
我想使用 webpack 构建我的 Truffle 应用
【问题讨论】:
标签: npm webpack npm-install truffle