我想安装从提供的。(关于OSX)
首先,我安装了NodeJs: 0.10.15的当前版本。
它包括国家预防机制。
现在我发出一个著名的命令:
npm install -g lessc
我得到了这个错误:
npm install -g lessc
npm http GET https://registry.npmjs.org/lessc
npm http GET https://registry.npmjs.org/lessc
npm http GET https://registry.npmjs.org/lessc
npm ERR! Error: UNABLE_TO_VERIFY_LEAF_SIGNATURE
npm ERR! at SecurePair.<anonymous> (tls.js:1350:32)
npm ERR! at SecurePair.EventEmitter.emit (events.js:92:17)
npm ERR! at SecurePair.maybeInitFinished (tls.js:963:10)
npm ERR! at CleartextStream.read [as _read] (tls.js:463:15)
npm ERR! at CleartextStream.Readable.read (_stream_readable.js:320:10)
npm ERR! at EncryptedStream.write [as _write] (tls.js:366:25)
npm ERR! at doWrite (_stream_writable.js:219:10)
npm ERR! at writeOrBuffer (_stream_writable.js:209:5)
npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:180:11)
npm ERR! at write (_stream_readable.js:573:24)在网上,我发现了一个解决办法
npm config set strict-ssl false但当我重新启动命令时,我现在得到:
npm install -g lessc
npm http GET https://registry.npmjs.org/lessc
npm http 404 https://registry.npmjs.org/lessc
npm ERR! 404 'lessc' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR! System Darwin 12.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "lessc"
npm ERR! cwd /Users/me
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
npm ERR! code E404我对NodeJs世界和它的包装机非常陌生。
我能做些什么来安装lessc吗?
也许我忘了一些env变量。
发布于 2013-08-11 14:07:39
好吧,这个问题是微不足道的:
事实上,我是受到这个播放插件的启发。
显示的命令是:
npm install -g lessc // lessc nonexisting而不是
npm install -g less现在,使用上面指定的解决方案,这是可行的。
https://stackoverflow.com/questions/18172661
复制相似问题