npm安装包后,很多人会在js里面用 require 来加载包: require("express") 但是有的时候会 cannot find module '/....' 那是因为你安装的时候是全局下,当前文件夹下没有,可以使用: npm link express