--- extra: original_version: https://dubble.so/guides/how-to-change-npm-configuration-to-access-cmf-repository-fvoz78c7sbcy8gwht4ry description: "Configure NPM to access a private repository using a modified .npmrc file" --- # How to: Change NPM configuration to access CMF repository ### 1\. Open an instance of Windows Explorer !!! info On the path directory search for the following: `C:\\Users\\\\.npmrc`. Select Enter to open the file. If a prompt to select a program to open the file shows, use Windows built-in Notepad. ![Howto changenpmconfigtocmfrepository image 1](../../../images/howto_changenpmconfigtocmfrepository_image_1.png) ### 2\. On that file past the following text We will need to replace `` with a base64 token. ![Howto changenpmconfigtocmfrepository image 2](../../../images/howto_changenpmconfigtocmfrepository_image_2.png) ### 3\. Next open a PowerShell window as Administrator ![Howto changenpmconfigtocmfrepository image 3](../../../images/howto_changenpmconfigtocmfrepository_image_3.png) ### 4\. Run the following command !!! info Change the email with the email you have registered in the Customer Portal, and Token with your Access Token. You can reuse the Access Token you created for the deployment of the MES in the VM. ![Howto changenpmconfigtocmfrepository image 4](../../../images/howto_changenpmconfigtocmfrepository_image_4.png) ### 5\. After that, run the next command to convert to base64 ![Howto changenpmconfigtocmfrepository image 5](../../../images/howto_changenpmconfigtocmfrepository_image_5.png) ### 6\. Copy your result, it should be similar to the following one ![Howto changenpmconfigtocmfrepository image 6](../../../images/howto_changenpmconfigtocmfrepository_image_6.png) ### 7\. Return to your .npmrc file Change the part with your base64 token. ![Howto changenpmconfigtocmfrepository image 7](../../../images/howto_changenpmconfigtocmfrepository_image_7.png) ### 8\. Your final .npmrc file should look like this !!! info After this configuration, every time you use npm install, you will be using Critical Manufacturing productive repository ![Howto changenpmconfigtocmfrepository image 8](../../../images/howto_changenpmconfigtocmfrepository_image_8.png)