Skip to content

Instantly share code, notes, and snippets.

@shaneholder
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneholder/d92f5f84834af8e808db to your computer and use it in GitHub Desktop.
Save shaneholder/d92f5f84834af8e808db to your computer and use it in GitHub Desktop.
I receive the error below when I publish. It looks like on line 127 it's trying to create a property on current for _attachments which does not exist on current yet. I could hack it and create a check for ensuring the property exists but I'm not sure that's the right thing.
> node -v
v0.10.25
C:\temp
> npm -v
1.3.24
C:\temp
npm publish --registry=https://xxxxxxxxxxxxxxxxxxxxxxxxxx
npm http PUT https://xxxxxxxxxxxxxxxxxxxxxxxxxx/redisrequest
npm http 409 https://xxxxxxxxxxxxxxxxxxxxxxxxxx/redisrequest
npm http GET https://xxxxxxxxxxxxxxxxxxxxxxxxxx/redisrequest
npm http 200 https://xxxxxxxxxxxxxxxxxxxxxxxxxx/redisrequest
npm ERR! TypeError: Cannot set property 'redisrequest-0.3.1.tgz' of undefined
npm ERR! at RegClient.putNext (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\publish.js:127:25)
npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\publish.js:101:15)
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:27:9)
npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:122:16)
npm ERR! at cb (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:158:9)
npm ERR! at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:306:12)
npm ERR! at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:123:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:893:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publish" "--registry=https://xxxxxxxxxxxxxxxxxxxxxxxxxx"
npm ERR! cwd C:\d\Cubixx\Device\redisRequest
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! type non_object_property_store
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\d\Cubixx\Device\redisRequest\npm-debug.log
npm ERR! not ok code 0
{
"_id": "redisrequest",
"_rev": "1-d12b662c8cf9d618207dac5ab9477e04",
"name": "redisrequest",
"description": "Request module which will save unsuccessful requests into redis database.",
"dist-tags": {
"latest": "0.3.0"
},
"versions": {
"0.3.0": {
"name": "redisrequest",
"version": "0.3.0",
"description": "Request module which will save unsuccessful requests into redis database.",
"main": "index.js",
"scripts": {
"test": "mocha"
},
"repository": {
"type": "tfs",
"url": ""
},
"author": "",
"license": "BSD",
"gitHead": "41a98e1a44a7c7295ec8499bf7fa3f7f1bbcd024",
"dependencies": {
"redis": "*",
"underscore": "*",
"request": "*",
"CubixxLogger": "*",
"winston": "~0.6.2",
"uuid": "*"
},
"devDependencies": {
"should": "~1.2.2",
"sinon": "~1.7.3",
"nock": "~0.22.0"
},
"readme": "Stores http reqeusts into redis for delayed delivery.",
"readmeFilename": "Readme.md",
"_id": "redisrequest@0.3.0",
"dist": {
"shasum": "789f72c083c5f701f30f13e5e872d365db385cb4",
"tarball": "https://xxxxxxxxxxxxxxxxxxxxxx/redisrequest/-/redisrequest-0.3.0.tgz"
},
"_from": ".",
"_npmVersion": "1.3.21",
"_npmUser": {
"name": "admin",
"email": "shane.holder@xxxxxxxxxxxxxxxx"
},
"maintainers": [
{
"name": "admin",
"email": "shane.holder@xxxxxxxxxxxxxxxx"
}
],
"directories": {}
}
},
"readme": "Stores http reqeusts into redis for delayed delivery.",
"maintainers": [
{
"name": "admin",
"email": "shane.holder@xxxxxxxxxxxxxxxxxxx"
}
],
"time": {
"0.3.0": "2014-01-24T20:12:41.855Z"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment