sinopia | Private npm repository server | Database library
kandi X-RAY | sinopia Summary
kandi X-RAY | sinopia Summary
sinopia - a private/caching npm repository server. It allows you to have a local npm registry with zero configuration. You don't have to install and replicate an entire CouchDB database. Sinopia keeps its own small database and, if a package doesn't exist there, it asks npmjs.org for it keeping only those packages you use.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sinopia
sinopia Key Features
sinopia Examples and Code Snippets
Community Discussions
Trending Discussions on sinopia
QUESTION
I'm planning to setup private npm registry for our internal Node.js/web projects, and seems that Verdaccio is the best open-source choice for it.
Before starting to publish my private packages there I want to be sure that an easy way to move Verdaccio installation with all published packages to another server exists. Here is a similar question for Sinopia Verdaccio project is forked from. Folks there say that we should simply move entire sinopia
directory to another server. But what is the exact directory and what is the directory (or, probably, few directories) for Verdaccio?
I have Node.js installed by nvm script and Verdaccio installed globally the following way:
...ANSWER
Answered 2019-Mar-21 at 16:58Here Verdaccio core maintainer. Not long time ago I've written down the required steps to move from latest Sinopia to any Verdaccio (v3,v4-alpha).
In a nutshell (for UNIX):
- The folder
~/.local/share/sinopia
must be renamed to~/.local/share/verdaccio
- The folder
~/.config/sinopia
must be renamed to~/.config/verdaccio
There is an additional step, not required, but recommended:
- The file
~/.config/sinopia/storage/.sinopia-db.json
must be renamed to~/.local/share/verdaccio/storage/.verdaccio-db.json
To find the Windows location, check the following link.
I hope this helps. Original source in the link below.
QUESTION
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 --registry
P.S. tried to google and looked in official NPM documentation but have found nothing.
...ANSWER
Answered 2019-Jan-31 at 07:17One of the method i know that is by .npmrc You can also use .npmrc also inside the project
set configuration like this
QUESTION
How to unpublish/remove already published packages in to Sinopia (Local NPM repository) ?
Let's say I have published a package called @test/test-package. How to unpublish it from local repository ?
...ANSWER
Answered 2018-Nov-09 at 05:45Try this command.
QUESTION
We have a private npm repo hosted using sinopia it has basic auth credentials. And our application uses the npm package of the private repo. I created the authentication token and tried it but I am getting error at the line RUN npm install utilities@0.1.9
:
...
ANSWER
Answered 2018-Jul-05 at 15:13I'm guessing the package utilities@0.1.9
is your private package? If so, it would seem your auth token either isn't being used or doesn't have access to that package for some reason.
You could try writing the ~/.npmrc
file rather than using the config set, this would just be a case of using:
QUESTION
I am trying to install sinopia for electron updater globally but am getting the following error:
...ANSWER
Answered 2018-Mar-19 at 14:01The error says clearly what's wrong:
EACCES: permission denied, access '/usr/lib/node_modules/sinopia'
And also provides a solution:
Please try running this command again as root/Administrator
So, just run the command as an administrator, like this: sudo npm install -g sinopia
.
QUESTION
I have an npm private repo through sinopia I have published an app in this. It is a full end-to-end application using Angular2 on the UI side. It has its own dependencies mentioned in package.json such as @angular/core, animations etc.
When I install this pvt module, I am getting an error where it is unable to install sub-dependencies, i.e. dependencies which are part of pvt module.
Screenshot of the error:
...ANSWER
Answered 2017-Sep-21 at 18:32It's looking for dependencies which are not global but that are in your private repository. You should change the configuration to allow download of these dependencies from the global npm repository. Add this configuration to .npmrc file
QUESTION
We have the following project structure in Visual Studio. The reason we have a SharedComponents project is because a lot of components are shared between our client and admin interface. We use the feature pattern and would like to have this project structure.
...ANSWER
Answered 2018-Jan-15 at 15:15We decided to put all our front end code in one project and then use separate folders there. This means we only have one package.json
, node_modules
, tsconfig.json
and tslint.json
. We can't have the API:s in the same project but since we can use hot reloading with webpack-dev-server
it was still a good trade off in the end.
We then used two separate webpack.config.js
files called webpack.publicclient.config.js
and webpack.admin.config.js
for different configurations.
QUESTION
I have downloaded the following demo and ng2-archwizard
I would like to make changes to make local change to the source for ng2-archwizard and install the package locally for this demo project.
The first thing that I tried was npm link
by following these steps
- Inside ng2-archwizard I made code changes and ran
npm link
- Inside the demo project I installed ng2-archwizard using
npm link \path\to\ng2-archwizard
or justnpm link ng2-archwizard
- When I run
ng serve
I get the following error
chunk {0} main.bundle.js, main.bundle.js.map (main) 984 kB {4} [initial] [rendered]
chunk {1} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 191 kB {5} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 175 kB {5} [initial] [rendered]
chunk {3} scripts.bundle.js, scripts.bundle.js.map (scripts) 168 kB {5} [initial] [rendered]
chunk {4} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.83 MB [initial] [rendered]
chunk {5} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 194:50 in the original .ts file), resolving symbol NgModule in /usr/xxx/ng2-archwizard-demo/node_modules/ng2-archwizard/node_modules/@angular/core/core.d.ts, resolving symbol ArchwizardModule in /usr/xxx/ng2-archwizard-demo/node_modules/ng2-archwizard/dist/archwizard.module.d.ts, resolving symbol ArchwizardModule in /usr/xxx/ng2-archwizard-demo/node_modules/ng2-archwizard/dist/archwizard.module.d.ts
Then I tried npm pack
to create a tar and install that tar in the demo project and it works as a short-term solution.
Update 1
1. Inside ng2-archwizard I made code changes and ran npm pack
2. Inside the demo project I installed ng2-archwizard using npm install \path\to\ng2-archwizard.tar
or npm install \path\to\ng2-archwizard.tar --save
(which saves the dependancy to the package.json of the demo project)
3. Run ng serve
4. When I have to make any changes again to the code, I have to repeat the above three steps again with additional steps of clearing cache, uninstalling the tar etc.
For a sustainable build process, how can I install the package locally and have my changes reflected in the demo project using npm link?
Update 2
Due to our products and team structure, have decided to go with a private repository as a more sustainable scalable solution across different teams. Sinopia is not maintained but found two that are maintained and work Verdaccio - A maintained fork of sinopia and cnpm.
...ANSWER
Answered 2017-Oct-27 at 08:22From NPM docs:
If you want to depend on the package from your own module using something like Node.js' require, then you want to install locally, which is npm install's default behavior. On the other hand, if you want to use it as a command line tool, something like the grunt CLI, then you want to install it globally
So it's as simple as:
QUESTION
I am struggling a bit with setting a workflow for our npm repo publish and git work flow. I have implemented a solution as follows and I am not satisfied with it.
Developer --> ready to push to git --> npm version (i have a script that updates README.md with the changelog -- using sinopia which does not support changelog) --> commit and push --> accept and merge --> git ci pipeline --> builds, tests and publishes to npm repo.
The nit that I have is that if the developer forgets to version the repo then the pipeline fails. I can probably create a staging area in my git pipeline that will contain an updated README and version the repo as part of the git CI. But that does not feel right for several reasons. Mainly I would rather not pollute the GIT with dynamic changes to the source files.
So, to summarize. Is there a better way? Ideally, I would like to version the repo when the changes are ready to be accepted in GIT. But I am not sure how. BTW we are using gitlab.
...ANSWER
Answered 2017-May-12 at 07:46You can use pre-commit hook to update the file’s version automatically (assume the file is package.json
).
pre-commit hook will execute before commit changes, so you can get current version by shell script, and then use the increment version to replace current version. And then git commit will also commit package.json
with new version.
Assume package.json
file's format as below (version is in third line):
QUESTION
I am Beginning the getting started react native tutorial by following the official docs from here https://facebook.github.io/react-native/docs/getting-started.html
- Finished installing choco, nodejs and python without any trouble
- While doing npm install -g react-native-cli i get "Cannot read property 'path' of null" (full error below)
ANSWER
Answered 2017-Feb-22 at 12:41I think your npm path is not set in environment variables. Please set your npm path or run this command from where your npm is installed. To set your environment variable in windows 1. Go to properties in My Computer. 2. Go to advanced system settings. 3. Then go to Environment Variables. 4. Then add npm path in the PATH variable. For e.g. C:\Users\myuser\AppData\Roaming\npm;
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sinopia
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page