Example Bundling of Package with NPM #################################### Install Verdaccio ***************** .. code-block:: bash npm install verdaccio verdaccio Create example package ********************** .. code:: bash head -c 100M myfile mkdir -p myPackage/files/ tar -czf ./myPackage/files/myPackage-1.0.0.tgz myfile Create package.json file inside myPackage ***************************************** .. code-block:: JSON { "name": "myPackage", "version": "1.0.0", "description": "A generic package tarball", "main": "index.js", "files": [ "files/myPackage-1.0.0.tgz" ] } Package and upload to local npm server ************************************** .. code:: bash npm pack myPackage npm publish myPackage --registry http://localhost:4873 Install and view package ************************ .. code:: bash npm install myPackage --registry http://localhost:4873 ls -grtha ./*myPackage*