我下載了nodes.js v0.10.15-linux-x86並將其添加到路徑中,以便它僅供我使用。我安裝了[email protected]。但是,安裝後,我找不到任何地方。安裝後的命令clean-css在哪裏?
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
[email protected] node_modules/clean-css
└── [email protected]
我查看了node/lib/node_modules /目錄,沒有這樣的名爲「clean-css」的目錄。
你能看到設置有什麼問題嗎?
感謝
是的,「-g」選項有效。謝謝!我現在可以在「/ home/Jaska/node-v0.10.15 -linux-x86/lib/node_modules/clean-css」和「/home/Jaska/node-v0.10.15-linux-x86/bin」找到它。 。 – chfw