找不到模块:错误:无法解析"C:\ dev \ jszip-test \ node_modules \ jszip \ lib"中的“流" [英] Module not found: Error: Can't resolve 'stream' in 'C:\dev\jszip-test\node_modules\jszip\lib'

查看:332
本文介绍了找不到模块:错误:无法解析"C:\ dev \ jszip-test \ node_modules \ jszip \ lib"中的“流"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在angular 7应用程序中使用jszip v3.2.1.当我构建项目(例如,运行npm start)时,出现以下错误:

I'm using jszip v3.2.1 in an angular 7 application. When I build my project (running, for example, npm start) I'm getting the following error:

./node_modules/jszip/lib/visible-stream-browser.js中的错误

ERROR in ./node_modules/jszip/lib/readable-stream-browser.js

未找到模块:错误:无法解析流" 'C:\ dev \ jszip-test \ node_modules \ jszip \ lib'

Module not found: Error: Can't resolve 'stream' in 'C:\dev\jszip-test\node_modules\jszip\lib'

我该如何解决这个问题?

How can I solve this problem?

推荐答案

阅读

After reading this post I found out that the stream package was missing from my project.

您可以通过运行以下命令来安装它:

You can install it by running the following command:

npm i stream

这篇关于找不到模块:错误:无法解析"C:\ dev \ jszip-test \ node_modules \ jszip \ lib"中的“流"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆