Menu

Install Name node global packages to another computer

March 26, 2019 - Node, ubuntu

Run this:

npm list -g –depth 0 > npmfile

result will be like that:
C:\Users\PC\AppData\Roaming\npm
+– generator-react-native-ignite@1.4.1
+– grunt@1.0.1
+– grunt-cli@1.2.0
+– grunt-uncss@0.6.1
+– gulp@3.9.1
+– mit-license-generator@0.1.0
+– nodemon@1.10.2
+– npm@3.10.7
+– react-native-cli@1.0.0
+– react-native-ignite@1.4.1
+– webpack@1.13.1
`– yuidocjs@0.10.2

Remove +– from front of all modules

On New Pc run

cat npmfile | xargs npm install -g

Leave a Reply