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
b8050efb
Commit
b8050efb
authored
Sep 17, 2015
by
Marcin Cieślak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve 河蟹 message
parent
14392b90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
install.js
scripts/install.js
+8
-5
No files found.
scripts/install.js
View file @
b8050efb
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
*/
*/
var
fs
=
require
(
'fs'
),
var
fs
=
require
(
'fs'
),
eol
=
require
(
'os'
).
EOL
,
mkdir
=
require
(
'mkdirp'
),
mkdir
=
require
(
'mkdirp'
),
npmconf
=
require
(
'npmconf'
),
npmconf
=
require
(
'npmconf'
),
path
=
require
(
'path'
),
path
=
require
(
'path'
),
...
@@ -22,11 +23,13 @@ require('../lib/extensions');
...
@@ -22,11 +23,13 @@ require('../lib/extensions');
function
download
(
url
,
dest
,
cb
)
{
function
download
(
url
,
dest
,
cb
)
{
var
reportError
=
function
(
err
)
{
var
reportError
=
function
(
err
)
{
cb
([
'Cannot download "'
,
url
,
'": '
,
cb
([
'Cannot download "'
,
url
,
'": '
,
eol
,
eol
,
typeof
err
.
message
===
'string'
?
err
.
message
:
err
,
typeof
err
.
message
===
'string'
?
err
.
message
:
err
,
eol
,
eol
,
" Hint: If you are in China, "
,
'Hint: If github.com is not accessible in your location'
,
eol
,
"try setting a proxy via HTTP_PROXY, e.g. "
,
' try setting a proxy via HTTP_PROXY, e.g. '
,
eol
,
eol
,
"export HTTP_PROXY=http://server.com:1234"
].
join
(
''
));
' export HTTP_PROXY=http://example.com:1234'
,
eol
,
eol
,
'or configure npm proxy via'
,
eol
,
eol
,
' npm config set proxy http://example.com:8080'
].
join
(
''
));
};
};
var
successful
=
function
(
response
)
{
var
successful
=
function
(
response
)
{
return
response
.
statusCode
>=
200
&&
response
.
statusCode
<
300
;
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