Browse Source

npm install

Bob Mottram 8 years ago
parent
commit
1999bf62ab
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-utils-nodejs

+ 4
- 0
src/freedombone-utils-nodejs View File

181
     fi
181
     fi
182
     rm -f /root/install-nodejs.sh
182
     rm -f /root/install-nodejs.sh
183
 
183
 
184
+    # second npm install attempt seems necessary
185
+    npm install -g npm@${NPM_VERSION} --save
186
+    cp /usr/local/bin/npm /usr/bin/npm
187
+
184
     # node seems tricky so here we're going to double check
188
     # node seems tricky so here we're going to double check
185
     # that the versions we expect did get installed
189
     # that the versions we expect did get installed
186
     CURR_NODE_VERSION=$(node --version)
190
     CURR_NODE_VERSION=$(node --version)