Skip to content

formstream的package.json文件依赖的"mime": "^1.3.4", #13

@jx168

Description

@jx168

安装依赖会安装2.0版本,因为node-mime代码方法名改了
Version 2 is a breaking change from 1.x as the semver implies. Specifically:

lookup() renamed to getType()
extension() renamed to getExtension()
charset() and load() methods have been removed
If you prefer the legacy version of this module please npm install mime@^1. Version 1 docs may be found here.
这样会引发报错
nodejs.TypeError: mime.lookup is not a function
请更新下指定版本

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions