GithubHelp home page GithubHelp logo

Comments (7)

thyb avatar thyb commented on June 11, 2024

I don't know if it's the issue but using the git clone method, in oauthd/ folder, just write npm install
because with npm install oauthd, i get the following error trying to reproducing the issue:

~/tmp ❯❯❯ git clone https://github.com/oauth-io/oauthd.git
Cloning into 'oauthd'...
remote: Counting objects: 460, done.
remote: Compressing objects: 100% (351/351), done.
remote: Total 460 (delta 96), reused 458 (delta 94)
Receiving objects: 100% (460/460), 14.03 MiB | 354 KiB/s, done.
Resolving deltas: 100% (96/96), done.
~/tmp2 ❯❯❯ cd oauthd
~/tmp/oauthd git:master ❯❯❯ npm install oauthd
npm WARN install Refusing to install oauthd as a dependency of itself

npm install should install all the required package

~/tmp2 ❯❯❯ git clone https://github.com/oauth-io/oauthd.git
Cloning into 'oauthd'...
remote: Counting objects: 460, done.
remote: Compressing objects: 100% (351/351), done.
remote: Total 460 (delta 96), reused 458 (delta 94)
Receiving objects: 100% (460/460), 14.03 MiB | 354 KiB/s, done.
Resolving deltas: 100% (96/96), done.
~/tmp2 ❯❯❯ cd oauthd
~/tmp2/oauthd git:master ❯❯❯ npm install
npm http GET https://registry.npmjs.org/hiredis
npm http GET https://registry.npmjs.org/redis
npm http GET https://registry.npmjs.org/restify
npm http GET https://registry.npmjs.org/async
...
~/tmp2/oauthd git:master ❯❯❯ npm start
> [email protected] start /home/thyb/tmp2/oauthd
> forever -c coffee --minUptime 1000 --spinSleepTime 1000 -a -l forever.log -o out.log -e err.log start lib/oauthd.coffee

info:    Forever processing file: lib/oauthd.coffee

Then, my http://localhost:6284/admin works.
Does it helps you ?

from oauthd.

nodesocket avatar nodesocket commented on June 11, 2024

Nope still the same:

Error: Cannot find module 'restify-oauth2-private'

I even deleted the entire node_modules directory and did npm install again. Still the same problem.

from oauthd.

bumpmann avatar bumpmann commented on June 11, 2024

restify-oauth2-private is a versionned folder in node_modules (it's a modification of restify-oauth2) so you can't just delete node_modules.

from oauthd.

bumpmann avatar bumpmann commented on June 11, 2024

Use git checkout -- ./node_modules to recreate this folder.

from oauthd.

pythonmobile avatar pythonmobile commented on June 11, 2024

On debian, I'm having a similar problem. I tried both npm install and npm install oauthd. No errors, but 👍
/tmp/oauthd$ npm start

[email protected] start /tmp/oauthd
forever -c coffee --minUptime 1000 --spinSleepTime 1000 -a -l forever.log -o out.log -e err.log start lib/oauthd.coffee

info: Forever processing file: lib/oauthd.coffee

and then there is no server. I did see this warning during install thou:

npm WARN package.json [email protected] No repository field.

from oauthd.

bumpmann avatar bumpmann commented on June 11, 2024

Indeed, the errors are stored in err.log like apache would log errors in a file. But we still need some checks at start (there is still grunt test to run basic tests).

The missing restify-oauth2-private bug will be fixed very soon (as a distinct package)

from oauthd.

bumpmann avatar bumpmann commented on June 11, 2024

We published v0.1.2 to get rid of this module. It's now a separated package (https://github.com/oauth-io/restify-oauth2-oauthd forked from the original restify-oauth2) with the same modifications.

You can npm update or delete / npm install again (redis database remains unchanged but you might remodify config.js)

from oauthd.

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.