Define private registry in package.json
问题 We have a private npm repository based on Sinopia What should I define in package.json that some packages will be installed from Synopia rather then from global npm repository? If I install it from command line I can run: npm install <package_name> --registry <http://<server:port> P.S. tried to google and looked in official NPM documentation but have found nothing. 回答1: One of the method i know that is by .npmrc You can also use .npmrc also inside the project set configuration like this