From 566eaa64ba6176d53f367e432faf5284dd9e3239 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Fri, 16 Dec 2022 21:40:24 +0800 Subject: [PATCH] nvm will handle npm global bin path --- workspace/Dockerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 4f277ebb..a4cb4a7b 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -760,7 +760,6 @@ RUN if [ ${INSTALL_NODE} = true ]; then \ && if [ ${INSTALL_NPM_ANGULAR_CLI} = true ]; then \ npm install -g @angular/cli \ ;fi \ - && ln -s `npm bin --global` /home/laradock/.node-bin \ ;fi # Wouldn't execute when added to the RUN statement in the above block @@ -780,9 +779,6 @@ RUN if [ ${INSTALL_NODE} = true ]; then \ echo '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \ ;fi -# Add PATH for node -ENV PATH $PATH:/home/laradock/.node-bin - # Make it so the node modules can be executed with 'docker-compose exec' # We'll create symbolic links into '/usr/local/bin'. RUN if [ ${INSTALL_NODE} = true ]; then \