goddyZhao / nproxy

A cli proxy tool specialized in file replacing
http://goddyzhao.me/nproxy
MIT License
509 stars 89 forks source link

mime.lookup is not a function #63

Open goozo opened 5 years ago

goozo commented 5 years ago

getting an error on the console output from nproxy after a matched url: [ERROR] uncaughtException: mime.lookup is not a function

Mac os 10.12.4 chrome 67 node v8.10.0

ylzsmallsun commented 5 years ago

Hi @goozo , downgrade the version of mime to '1.3.4'.

ranwawa commented 5 years ago

Hi @goozo , downgrade the version of mime to '1.3.4'.

在哪升级?是下载到哪个目录里面呢?

nightost commented 4 years ago

Hi @goozo , downgrade the version of mime to '1.3.4'.

在哪升级?是下载到哪个目录里面呢?

应该全局的node_modules下面,但是1.3.4的mine也没有了 基本已经废弃了

nightost commented 4 years ago

Hi @goozo , downgrade the version of mime to '1.3.4'.

在哪升级?是下载到哪个目录里面呢?

应该全局的node_modules下面,但是1.3.4的mine也没有了 基本已经废弃了

下载离线的1.3.6可以跑,但是如果代理hot-module的内容好像有点问题,mime类型有问题 放弃了