找不到模块:错误:无法解析"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'
问题描述
我在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屋!