命令clean-css安装后在哪里?

chf*_*hfw 12 css node.js

我下载了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
Run Code Online (Sandbox Code Playgroud)

我查看了node/lib/node_modules /目录,没有名为"clean-css"的目录.

你能看出设置有什么问题吗?

谢谢

Lau*_*rin 14

默认情况下,npm只会将模块安装在本地node_modules文件夹中.我们的想法是,您运行的每个模块,项目都可以具有其依赖项的独立版本.

npm install -g clean-css如果要从shell运行它,请尝试(全局安装).