css - npm 说“未安装 webpack 安装 webpack 以开始捆绑”,即使我已经安装了 webpack
问题描述
我正在尝试按照此处的说明使用 CSS 模块和 Webpack 制作网页。在我运行之前我很好npm start
,然后这是它给我的错误:
> css-modules@1.0.0 start /Users/username/Desktop/css-modules
> webpack && open index.html
webpack not installed
Install webpack to start bundling:
$ npm install --save-dev webpack
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! css-modules@1.0.0 start: `webpack && open index.html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the css-modules@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/username/.npm/_logs/2020-05-06T04_09_47_528Z-debug.log
…即使我已经安装了 webpack。
我应该怎么办?
解决方案
推荐阅读
- python - 如何比较来自 db 的哈希密码和输入到使用 tkinter 制作的 GUI 登录系统的登录密码
- post - 我想从应用程序捕获 HTTPS 流量,但它不起作用
- android - Android - onCreate 中的完成()行为不一致
- r - 如何在R中找到散点图的细胞倍增时间?
- php - Laravel 多对多关系在一个模型上失败,但在另一个模型上失败
- api - 检测vue组件完成渲染
- ocr - OCR 将 E 检测为 £
- amazon-web-services - ssh ec2 密钥错误权限被拒绝(公钥)
- odata - 如何将 Odata 请求转换为 JSON 响应
- java - 从一个 java 文件中的一个 ArrayList 中提取数据,并将其显示在 ArrayList 中的不同 java 文件中