關於npm安裝全局模塊,require時報Error: Cannot find module 'XXX'的解決辦法

下午使用npm安裝「cheerio」。css npm安裝有兩種模式:html 本地 # npm install cheerionode 全局 # npm install cheerio -glinux 若是想要全局安裝,你首先要先設置個全局路徑npm 我在"node的安裝位置/lib/node_modules/"目錄下新建了文件夾node_global專門用來存放新安裝的全局包vim # npm
相關文章
相關標籤/搜索