Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

throw new Error('Must set DEPLOY_VERSION env to git describe output') #263

Open
sudheerkrishnabattu opened this issue Aug 23, 2016 · 4 comments

Comments

@sudheerkrishnabattu
Copy link

sudheerkrishnabattu commented Aug 23, 2016

I am trying to run the command couchapp push registry/app.js http://localhost:5984/registry I'm getting below error message. I made the change based on the answer provided by Terinjokes e5e4163
and I'm still having the issue. Please let me know what needs to be done to resolve the issue,

My npm version 3.10.6 and node js version v0.10.25

/npm-repo/npmjs.org/registry/app.js:15
  throw new Error('Must set DEPLOY_VERSION env to `git describe` output')
        ^
Error: Must set DEPLOY_VERSION env to `git describe` output
    at Object.<anonymous> (/npm-repo/npmjs.org/registry/app.js:15:9)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/couchapp/bin.js:175:26)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
@terinjokes
Copy link
Contributor

In the shell you're running these steps in, is DEPLOY_VERSION set?

echo $DEPLOY_VERSION

@nothingweb
Copy link

I have the same problem.Some people solved this problem?

@delonakc
Copy link

DEPLOY_VERSION='git describe --tags' couchapp push registry/app.js http://127.0.0.1:5984/registry

you can try this.

@wariorx
Copy link

wariorx commented Jul 2, 2018

If this error persists after setting the env variable, you can also hard code it within app.js by adding this before the if statement

process.env.DEPLOY_VERSION = 'git describe --tags'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants