A. 使用sudo npm -g install xxx安裝的全局包在require時(shí)提示找不到。
Q. 在項(xiàng)目根目錄下執(zhí)行sudo npm link xxx即可。