. Ali's cnpm can also be used to build private NPM, but the configuration is slightly more troublesome. Installing Sinopia
NPM install-g Sinopia
After the installation succeeds, modify the NPM path to local,
NPM Set Registry http
:[email protected]:5984/registry npm Run copy--npm-registry-couchapp:couch =http://admin:[email protected]:5984/registry couchapp push www/app.js http://admin:[email protected]:5984/registryHere, push it up. Two Program Access address:Http://localhost:5984/_utils/
-proxy
Local NPM Settings Verify with NPM version
[Root@angular ~]# npm-v
5.5.1
[root@angular ~]# node-v-v9.1.0
Specific installation can refer to: http://blog.csdn.net/liumiaocn/article/details/78510679 settings. NPMRC
You can use the following command, or you can modify the. npmrc file directly
[root@angular ~]#
@ipaddress:5984/registry[root@npm_private npm-registry-couchapp]# npm run load --npm-registry-couchapp:couch=http://admin:admin@ipaddress:5984/registry7. synchronize the official npm Li
Index.js file under Config directory.5. Start the serviceOnce the above steps are configured, you can start the CNPMJS service, for example, enter a command:1 node--harmony_generators dispatch.js After starting the service, enter in the browser: http://127.0.0.1:7002, if you see the following page, it means success!6. Client UseThe private service is set up, how to use it on the client?The simplest way to do this is to set up NPM's
/_config/admins/admin-d ' "123456" ""
And then you look at the Local.ini file and you find one more line.
$ vim/usr/local/etc/couchdb/local.ini
[admins]
admin =-pbkdf2-297f2655663749cd6ff31d4f73dd973045501604, eaf253d41b0d8ddac87aa3d6683f7ee7,10
$ sudo/etc/init.d/couchdb Restart
And then you test that adding a library will tell you no permissions
$ curl-x put http://localhost:5984/database2
{"error": "Unauthorized", "Reason": "You are not a server admin."}
Add a URL with username and
(assuming you have installed the node environment)
$ NPM Install sinopia-g
$ sinopia
Then open the browser access address http://localhost:4873/Normal display is successful, 4873 is the default port configuration NPM Agent
After the Sinopia is started, the NPM agent used by the client is set up first through the NPM
As the front-end team grows, the sharing of code between projects becomes particularly important. Commonly used frameworks/libraries do not need to put a share in each project, and the public modules that are produced within the team also need to have a reasonable sharing mechanism. Managing front-end code with NPM is now an industry trend. The landlord tries to use the private
the following within Index.js
let greeting = function(name) {
return 'Hello ' + name;
}
module.exports = greeting;
This code exports a function that can be published and relied upon.
NPM AddUser
The first time you use this private repository you need to add users
npm adduser --registry http://ubunt
;}module.exports = greeting;
This code exports a function that can be published and relied upon.
NPM AddUser
The first time you use this private repository you need to add users
npm adduser --registry http://ubuntu-17:4873
NPM Publish
And then post the co
Cause
With node installed and NPM installed, the official source is too slow. Look at the NPM image of Taobao, http://npm.taobao.org/unexpectedly said let me download a cnpm, or every time you have to install, the back plus--registry. Are you kidding me? You can just see the conclusion that registry only applies to sc
You can use the NPM command-line tool to manage your private module code in the NPM repository, which makes it easier to use public modules in your project.Work before the startYou need a 2.7.0 version of NPM and need an account that can be logged into the NPM repository.Ins
Build a Docker registry private image to resolve the Docker private warehouse push error
applies To: Docker 1.8 Environment: Centos7
Each version of the Docker modification configuration content is different, please be optimistic about the installation of the Docker version.
1) Download Docker Registry
This is a creation in
Article, where the information may have evolved or changed.
Installing and deploying a private Docker registry is one of the only necessary technologies for introducing, learning and using Docker. Especially when Docker is accepted by the organization and more people, projects and products begin to touch and use Docker, storing and distributing the homemade Docker image is just as need
Build a private Docker Registry on CentOS 6 v2RegistryConceptReGistry is a stateless, highly extensible server-side application for storing and distributing Docker Image.Dependent installation1.InstallationDockerTo use Docker Registry, of course, first install Docker. Let's say you've installed Docker. It is not installed to refer to the official documentation.2.
ObjectiveIn a previous blog, "Setting up a Docker registry private warehouse in Ubuntu" introduces a simple way to build a Docker private repository. But it was used to modify the "--insecure-registry" parameters, which is used in the local area network, but also reluctantly suitable. But if you want to build a
We know we can use hub.docker.com as our public or private registry. However, due to the server in foreign countries, the network speed will be very slow.
So when we build our container service with Docker, we want to be able to build our own private registry, upload mirrored values to our
Sometimes it is inconvenient to use a public repository such as Docker Hub, and the company's private images are not pushed to the docker hub for business security. You can create a local repository for private use. Similar to git and maven, it saves the server bandwidth for downloading and uploading images.What is docker registry?Docker
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.