Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
14392b90
Commit
14392b90
authored
Sep 17, 2015
by
P.S.V.R
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add hints for China; Fix dlmanning/gulp-sass#342
parent
d62f59f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
install.js
scripts/install.js
+4
-1
No files found.
scripts/install.js
View file @
14392b90
...
...
@@ -23,7 +23,10 @@ require('../lib/extensions');
function
download
(
url
,
dest
,
cb
)
{
var
reportError
=
function
(
err
)
{
cb
([
'Cannot download "'
,
url
,
'": '
,
typeof
err
.
message
===
'string'
?
err
.
message
:
err
].
join
(
''
));
typeof
err
.
message
===
'string'
?
err
.
message
:
err
,
" Hint: If you are in China, "
,
"try setting a proxy via HTTP_PROXY, e.g. "
,
"export HTTP_PROXY=http://server.com:1234"
].
join
(
''
));
};
var
successful
=
function
(
response
)
{
return
response
.
statusCode
>=
200
&&
response
.
statusCode
<
300
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment