Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
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
OpenEdx
ansible
Commits
5b9b5fd0
Commit
5b9b5fd0
authored
Mar 21, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6612 from willthames/npm_fix_nonexistent_path
Allow npm to install to a directory that doesn't yet exist
parents
b204419a
7272877d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
library/packaging/npm
+4
-0
No files found.
library/packaging/npm
View file @
5b9b5fd0
...
...
@@ -139,6 +139,10 @@ class Npm(object):
#If path is specified, cd into that path and run the command.
cwd
=
None
if
self
.
path
:
if
not
os
.
path
.
exists
(
self
.
path
):
os
.
makedirs
(
self
.
path
)
if
not
os
.
path
.
isdir
(
self
.
path
):
self
.
module
.
fail_json
(
msg
=
"path
%
s is not a directory"
%
self
.
path
)
cwd
=
self
.
path
rc
,
out
,
err
=
self
.
module
.
run_command
(
cmd
,
check_rc
=
check_rc
,
cwd
=
cwd
)
...
...
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