NAE 不会自动加载项目自带node_modules
发布于 12 年前 作者 xeodou 4290 次浏览 最后一次编辑是 8 年前

NAE上 @python发烧友 的weibo node_modules 版本为0.5.x ,项目使用的版本是0.6.7,项目中自带了这个node_modules,但是NAE不优先加载而去加载旧版本的。导致现在微博认证的功能没法使用。现在查找不到原因,给require加上绝对路径也不行。 请问 1.如何禁用或卸载系统的node_modules 2.如何升级系统的node_modules

2 回复

你用

require(’./node_modules/weibo’)

没用么?

就是用了 才觉得奇怪。

回到顶部