repo2docker/tests/base/node/verify

19 wiersze
420 B
Bash
Executable File

#!/bin/sh
set -ex
# check node system package and its version
which node
node --version
node --version | grep v18
# npm comes with the nodejs conda-forge package that we have pinned, but we
# don't have npm pinned. For example nodejs 18.13.0 brought npm 8.19.3, but
# nodejs 18.14.0 brought npm 9.3.1.
#
# Since we have no npm version pinning, we just test that some version is
# installed.
#
which npm
npm --version