Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82d46328 authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

npm update in node.env

parent 0e2bd9dd
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -287,13 +287,17 @@ node.env() {
    # shellcheck disable=SC2230
    which npm &> /dev/null || die 1 'node.env - npm is not found!'

    build_msg INSTALL "npm version $(npm --version)"

    build_msg INSTALL "update npm version"
    npm install npm@6.14.4 -g

    build_msg INSTALL "npm version $(npm --version)"
    (   set -e
        # shellcheck disable=SC2030
        PATH="$(npm bin):$PATH"
        export PATH

        build_msg INSTALL "npm version $(npm --version)"

        build_msg INSTALL "npm install $NPM_PACKAGES"
        # shellcheck disable=SC2086
        npm install $NPM_PACKAGES
@@ -327,14 +331,6 @@ node.clean() {
       ./searx/static/themes/simple/node_modules \
       ./searx/static/themes/etheme/package-lock.json \
       ./searx/static/themes/etheme/node_modules 

    build_msg INSTALL "npm version $(npm --version)"

    build_msg INSTALL "update npm version"
    npm install npm@6.14.4 -g

    build_msg INSTALL "npm version $(npm --version)"

    dump_return $?
}