-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
安装 node-sass 时需要编译 #29
Comments
我自己安装了node,查了一下node 版本是v8.9.4 npm 版本是5.60版本 之后我执行 npm install -g elf-cli 总是报错,大牛,我是初学者,不太会用node,不知道是什么问题啊,怎么来执行命令,装elf |
@duyueyue 你是在什么系统里使用? 有按照 安装 这里的命令来吗? # mac/linux
$ SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ PHANTOMJS_CDNURL=https://npm.taobao.org/mirrors/phantomjs/ npm install -g elf-cli --registry=https://registry.npm.taobao.org
# windows
$ npm install -g elf-cli --registry=https://registry.npm.taobao.org --SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ --PHANTOMJS_CDNURL=https://npm.taobao.org/mirrors/phantomjs/ |
windows$ npm install -g elf-cli --registry=https://registry.npm.taobao.org --SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ --PHANTOMJS_CDNURL=https://npm.taobao.org/mirrors/phantomjs/ window7上面 |
能把报错信息贴出来看下吗? |
报错提示 另外你复制
这段执行试试,而不只是 |
好的,我试试!谢谢~ |
@booxood 可以了!! |
ELF 版本 运行环境 信息  |
@zongyuan-vale 这里失败了,看看为什么。需要加 sudo ? |
@zongyuan-vale 或者先把这个文件删掉再安装试试 |
我更改了/usr/local的权限之后就可以安装了,抱歉一直在996,没有及时回复(Modifying the "/usr/local" permission may be the solution to install "elf" error) |
ELF 版本
v1.9.0
运行环境
windows
信息
安装 node-sass 时指定了
SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/
但无法找到对应的已经编译好的版本The text was updated successfully, but these errors were encountered: