我下载了nodes.js v0.10.15-
linux-x86,并将其添加到路径,以便它仅可用于我.我安装了clean-css@1.1.3.但是,安装完成后,我找不到任何地方.
npm http GET https://registry.npmjs.org/clean-css npm http 200 https://registry.npmjs.org/clean-css npm http GET https://registry.npmjs.org/clean-css/-/clean-css-1.1.3.tgz npm http 200 https://registry.npmjs.org/clean-css/-/clean-css-1.1.3.tgz npm http GET https://registry.npmjs.org/commander npm http 200 https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/commander/-/commander-2.0.0.tgz npm http 200 https://registry.npmjs.org/commander/-/commander-2.0.0.tgz clean-css@1.1.3 node_modules/clean-css └── commander@2.0.0
我查看了node / lib / node_modules /目录,没有名为“clean-css”的目录.
你能看到设置有什么问题吗?
谢谢
解决方法
默认情况下,npm将仅将模块安装在本地的node_modules文件夹中.这个想法是,每个模块,您运行的项目可以具有其依赖关系的隔离版本.
如果要从shell运行,请尝试使用npm install -g clean-css(全局安装).