Node.js似乎缺少multipart模块 [英] Node.js appears to be missing the multipart module

查看:110
本文介绍了Node.js似乎缺少multipart模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试解析表单数据,包括使用node.js http服务器上传文件。我找到的所有教程类型文章都使用 require(multipart); 来包含multipart模块,但是当我尝试相同的时候,我得到:

I am trying to parse form data, including upload files with a node.js http server. All of the tutorial type articles I have found use a require("multipart"); to include the multipart module, but when I try the same I get:

Error: Cannot find module 'multipart'

我也无法在当前的 api docs 中找到它(尽管它是在谷歌缓存版本)。那么,这个模块是否已经从标准安装中删除了还是有其他工作吗?

I also can't find it in the current api docs (though it is in the google cached version). So, has this module been removed from the standard installation or is there something else that does the job?

推荐答案

Multipart.js是现在独立模块

Multipart.js is now standalone module.

这篇关于Node.js似乎缺少multipart模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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