Giter VIP home page Giter VIP logo

Comments (5)

TooTallNate avatar TooTallNate commented on April 28, 2024 1

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.

renato04 avatar renato04 commented on April 28, 2024 1

Thanks! It worked following @TooTallNate tips.
@christopheranderson it was just for testing.

from cosmosdb-server.

christopheranderson avatar christopheranderson commented on April 28, 2024

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.

renato04 avatar renato04 commented on April 28, 2024

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.

christopheranderson avatar christopheranderson commented on April 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.