Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
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
eazydevelop-devcontainer-temp
devcontainer-features
Commits
0d7ad7c5
Unverified
Commit
0d7ad7c5
authored
Oct 04, 2023
by
Jan-Marco Edelmann
Committed by
GitHub
Oct 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure npm proxy when proxy environmentals exist (#712)
parent
90a9b1d6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
devcontainer-feature.json
src/node/devcontainer-feature.json
+1
-1
install.sh
src/node/install.sh
+3
-0
No files found.
src/node/devcontainer-feature.json
View file @
0d7ad7c5
{
{
"id"
:
"node"
,
"id"
:
"node"
,
"version"
:
"1.3.
0
"
,
"version"
:
"1.3.
1
"
,
"name"
:
"Node.js (via nvm), yarn and pnpm"
,
"name"
:
"Node.js (via nvm), yarn and pnpm"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/node"
,
"documentationURL"
:
"https://github.com/devcontainers/features/tree/main/src/node"
,
"description"
:
"Installs Node.js, nvm, yarn, pnpm, and needed dependencies."
,
"description"
:
"Installs Node.js, nvm, yarn, pnpm, and needed dependencies."
,
...
...
src/node/install.sh
View file @
0d7ad7c5
...
@@ -228,6 +228,9 @@ if type pnpm > /dev/null 2>&1; then
...
@@ -228,6 +228,9 @@ if type pnpm > /dev/null 2>&1; then
echo
"pnpm already installed."
echo
"pnpm already installed."
else
else
if
type
npm
>
/dev/null 2>&1
;
then
if
type
npm
>
/dev/null 2>&1
;
then
[
!
-z
"
$http_proxy
"
]
&&
npm
set
proxy
=
"
$http_proxy
"
[
!
-z
"
$https_proxy
"
]
&&
npm
set
https-proxy
=
"
$https_proxy
"
[
!
-z
"
$no_proxy
"
]
&&
npm
set
noproxy
=
"
$no_proxy
"
npm
install
-g
pnpm
npm
install
-g
pnpm
else
else
echo
"Skip installing pnpm because npm is missing"
echo
"Skip installing pnpm because npm is missing"
...
...
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