Skip to content
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

Open
booxood opened this issue Dec 13, 2017 · 13 comments
Open

安装 node-sass 时需要编译 #29

booxood opened this issue Dec 13, 2017 · 13 comments

Comments

@booxood
Copy link
Collaborator

booxood commented Dec 13, 2017

ELF 版本

v1.9.0

运行环境

windows

信息

安装 node-sass 时指定了SASS_BINARY_SITE=https://npm.taobao.org/mirrors/node-sass/ 但无法找到对应的已经编译好的版本

@booxood
Copy link
Collaborator Author

booxood commented Dec 13, 2017

因为淘宝镜像 "node-sass": "4.5.3" 没有对应的
image

@duyueyue
Copy link

我自己安装了node,查了一下node 版本是v8.9.4 npm 版本是5.60版本 之后我执行 npm install -g elf-cli 总是报错,大牛,我是初学者,不太会用node,不知道是什么问题啊,怎么来执行命令,装elf

@booxood
Copy link
Collaborator Author

booxood commented Jan 15, 2018

@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/

@duyueyue
Copy link

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
Copy link
Collaborator Author

booxood commented Jan 15, 2018

能把报错信息贴出来看下吗?

@duyueyue
Copy link

20180115173605

@booxood
Copy link
Collaborator Author

booxood commented Jan 15, 2018

报错提示 需要安装 git

另外你复制

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/

这段执行试试,而不只是 npm install -g elf-cli

@duyueyue
Copy link

好的,我试试!谢谢~

@duyueyue
Copy link

@booxood 可以了!!

@zongyuan-vale
Copy link

ELF 版本
v1.9.0

运行环境
mac

信息
运行安装命令报错
"
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
"
如图
wx20180702-202706 2x

@booxood
Copy link
Collaborator Author

booxood commented Jul 2, 2018

image

@zongyuan-vale 这里失败了,看看为什么。需要加 sudo ?

@booxood
Copy link
Collaborator Author

booxood commented Jul 2, 2018

image

@zongyuan-vale 或者先把这个文件删掉再安装试试

@zongyuan-vale
Copy link

我更改了/usr/local的权限之后就可以安装了,抱歉一直在996,没有及时回复(Modifying the "/usr/local" permission may be the solution to install "elf" error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants