Comments (5)
Do it from a different directory (no need to clone this repo), or install it globally with npm i -g @zeit/cosmosdb-server
and then the cosmosdb-server
command will be available.
from cosmosdb-server.
Thanks! It worked following @TooTallNate tips.
@christopheranderson it was just for testing.
from cosmosdb-server.
If you ran:
npm i @zeit/cosmosdb-server
that will put the cosmosdb-server command in your ./node_modules/.bin
. Then you can run:
npx cosmosdb-server -p 3000
from cosmosdb-server.
Thanks for answering me
After i run npm i
command
I'm getting the following error
root@55c2ef61899e:/cosmosdb-server# npm i @zeit/cosmosdb-server
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "@zeit/cosmosdb-server" under a package
npm ERR! also called "@zeit/cosmosdb-server". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-07-03T17_17_46_957Z-debug.log
from cosmosdb-server.
It looks like you cloned the repo and are trying to run it from the clone. What @TooTallNate said is right. That is the easiest way and likely what you'd do for any project you'd be trying to use it from for local testing/CI purposes. Ignore the rest of this if that's what you want to do.
If you want to run it from the cloned repo for contributing purposes, you need to:
npm i
npm run build
node ./lib/cli -p 3000
(node ./lib/cli
is what is in the bin
property in the package.json)
from cosmosdb-server.
Related Issues (20)
- Is this compatible with CosmosClient on an ASP.net Core application? HOT 3
- Query to //addresses/?$resolveFor=dbs&$filter=protocol%20eq%20rntbd HOT 3
- Support for C# SDK v3 HOT 5
- Docker image HOT 11
- Upsert responding with "Resource with specified id or name already exists."
- Project has no license file HOT 2
- Bad Request when GET request includes document header x-ms-documentdb-isquery
- Exception in read-document.ts getCollectionPartitionKeys when collection has no partitionKey saved
- Feature request: add externalized configuration for certificates and logging
- Support .NET client HOT 2
- read-meta hardcoded to port 3000 HOT 1
- GetItemLinqQueryable ... ToFeedIterator invalid response from queryDocuments HOT 3
- Query triggers `Unexpected token '.'` HOT 2
- Query triggers `"Invalid destructuring assignment target"`
- Gremlin/Graph support
- When using in azure function, it always tries calls https even when --no-ssl is set HOT 2
- When running cosmosdb-server alongside a azure function in a docker project, the function app wont connect to the server
- When querying from a azure function using input binding, a query plan request is made that is not mapped HOT 1
- Is server do not support patch operation? HOT 1
- GROUP BY
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmosdb-server.