Move where npm config is set

pull/847/head
YuviPanda 2020-03-10 17:30:56 +05:30
rodzic ef1497dddf
commit df92b99cdb
2 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -96,12 +96,6 @@ class CondaBuildPack(BaseImage):
chown -R ${NB_USER}:${NB_USER} ${NPM_DIR}
""",
),
(
"${NB_USER}",
r"""
${NB_PYTHON_PREFIX}/bin/npm config --global set prefix ${NPM_DIR}
""",
),
]
major_pythons = {"2": "2.7", "3": "3.7"}

Wyświetl plik

@ -48,6 +48,9 @@ echo "installing notebook env:"
cat /tmp/environment.yml
time mamba env create -p ${NB_PYTHON_PREFIX} -f /tmp/environment.yml
# Set NPM config
${NB_PYTHON_PREFIX}/bin/npm config --global set prefix ${NPM_DIR}
# empty conda history file,
# which seems to result in some effective pinning of packages in the initial env,
# which we don't intend.