Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

`npm star <package>` broken #4532

Closed
zeke opened this Issue Jan 23, 2014 · 10 comments

Comments

Projects
None yet
9 participants
Contributor

zeke commented Jan 23, 2014

I'm getting this error no matter what node/npm version I use (e.g. 1.2.30, 1.3.21):

$ npm star cheerio
npm http GET https://registry.npmjs.org/cheerio
npm http 200 https://registry.npmjs.org/cheerio
npm http PUT https://registry.npmjs.org/cheerio
npm http 403 https://registry.npmjs.org/cheerio
npm ERR! TypeError: Cannot set property 'token' of undefined
npm ERR!     at RegClient.<anonymous> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:140:31)
npm ERR!     at cb (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:158:9)
npm ERR!     at RegClient.<anonymous> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:306:12)
npm ERR!     at Request.self.callback (/Users/zeke/.nvm/v0.10.24/lib/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> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
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 Darwin 13.0.0
npm ERR! command "/Users/zeke/.nvm/v0.10.24/bin/node" "/Users/zeke/.nvm/v0.10.24/bin/npm" "star" "cheerio"
npm ERR! cwd /Users/zeke
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! type non_object_property_store
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/zeke/npm-debug.log
npm ERR! not ok code 0

npm stars works okay though:

$ npm stars
npm http GET https://registry.npmjs.org/-/_view/starredByUser?key=%22zeke%22
npm http 200 https://registry.npmjs.org/-/_view/starredByUser?key=%22zeke%22
beefy
browser-request
browsernizr
cheerio
chroma-js
color-convert
color-diff
color-namer
...
Contributor

rlidwka commented Jan 23, 2014

Remove the entire [_token] section from your ~/.npmrc and try again. Maybe it'll help a bit.

Contributor

zeke commented Jan 23, 2014

Removed everything after _token. Now ~.npmrc looks like this:

_auth = [REDACTED]
email = zeke@sikelianos.com
registry = https://registry.npmjs.org
always-auth = true

Now I see a new error:

$ npm star cheerio
npm http GET https://registry.npmjs.org/cheerio
npm http 200 https://registry.npmjs.org/cheerio
npm http PUT https://registry.npmjs.org/cheerio
npm http 403 https://registry.npmjs.org/cheerio
npm ERR! Error: forbidden user: zeke not authorized to modify cheerio
npm ERR! Deleted: versions.0.7.0.readme
npm ERR! Deleted: versions.0.8.0.readme
npm ERR! Deleted: versions.0.8.1.readme
npm ERR! Deleted: versions.0.8.2.readme
npm ERR! Deleted: versions.0.8.3.readme
npm ERR! Deleted: versions.0.9.0.readme
npm ERR! Deleted: versions.0.9.1.readme
npm ERR! Deleted: versions.0.9.2.readme
npm ERR! Deleted: versions.0.10.0.readme
npm ERR! Deleted: versions.0.10.1.readme
npm ERR! Deleted: versions.0.10.2.readme
npm ERR! Deleted: versions.0.10.3.readme
npm ERR! Deleted: versions.0.10.4.readme
npm ERR! Deleted: versions.0.10.4.readmeFilename
npm ERR! Deleted: versions.0.10.5.readme
npm ERR! Deleted: versions.0.10.5.readmeFilename
npm ERR! Deleted: versions.0.10.6.readme
npm ERR! Deleted: versions.0.10.6.readmeFilename
npm ERR! Deleted: versions.0.10.7.readme
npm ERR! Deleted: versions.0.10.7.readmeFilename
npm ERR! Deleted: versions.0.10.8.readme
npm ERR! Deleted: versions.0.10.8.readmeFilename
npm ERR! Deleted: versions.0.11.0.readme
npm ERR! Deleted: versions.0.11.0.readmeFilename
npm ERR! Deleted: versions.0.12.0.readme
npm ERR! Deleted: versions.0.12.0.readmeFilename
npm ERR! Deleted: versions.0.12.1.readme
npm ERR! Deleted: versions.0.12.1.readmeFilename
npm ERR! Deleted: versions.0.12.2.readme
npm ERR! Deleted: versions.0.12.2.readmeFilename
npm ERR! Deleted: versions.0.12.3.readme
npm ERR! Deleted: versions.0.12.3.readmeFilename
npm ERR! Deleted: versions.0.12.4.readme
npm ERR! Deleted: versions.0.12.4.readmeFilename
npm ERR! Deleted: versions.0.13.0.readme
npm ERR! Deleted: versions.0.13.0.readmeFilename
npm ERR! Deleted: versions.0.13.1.readme
npm ERR! Deleted: versions.0.13.1.readmeFilename
npm ERR! Changed: time.modified "2014-01-18T22:21:44.618Z" -> "2014-01-23T00:05:36.963Z"
npm ERR! Added: readme
npm ERR! Added: readmeFilename: cheerio
npm ERR!     at RegClient.<anonymous> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:275:14)
npm ERR!     at Request.self.callback (/Users/zeke/.nvm/v0.10.24/lib/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> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/Users/zeke/.nvm/v0.10.24/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
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 Darwin 13.0.0
npm ERR! command "/Users/zeke/.nvm/v0.10.24/bin/node" "/Users/zeke/.nvm/v0.10.24/bin/npm" "star" "cheerio"
npm ERR! cwd /Users/zeke
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/zeke/npm-debug.log
npm ERR! not ok code 0
Contributor

zeke commented Feb 3, 2014

I still can't star stuff. Anyone else having this issue?

Contributor

forivall commented Feb 6, 2014

I'm having this issue too.

❯ npm star event-stream
npm http GET https://registry.npmjs.org/event-stream
npm http 200 https://registry.npmjs.org/event-stream
npm http PUT https://registry.npmjs.org/event-stream
npm http 403 https://registry.npmjs.org/event-stream
npm http PUT https://registry.npmjs.org/event-stream
npm http 403 https://registry.npmjs.org/event-stream
npm ERR! Error: forbidden user: forivall not authorized to modify event-stream
npm ERR! Deleted: versions.0.8.0.readme
npm ERR! Deleted: versions.0.8.1.readme
npm ERR! Deleted: versions.0.8.2.readme

***SNIP***

npm ERR! Deleted: versions.3.0.15.readmeFilename
npm ERR! Deleted: versions.3.0.16.readme
npm ERR! Deleted: versions.3.0.16.readmeFilename
npm ERR! Deleted: versions.3.0.17.readme
npm ERR! Deleted: versions.3.0.17.readmeFilename
npm ERR! Deleted: versions.3.0.18.readmeFilename
npm ERR! Deleted: versions.3.0.20.readme
npm ERR! Deleted: versions.3.0.20.readmeFilename
npm ERR! Deleted: versions.3.1.0.readme
npm ERR! Deleted: versions.3.1.0.readmeFilename
npm ERR! Changed: time.modified "2014-01-09T07:19:47.716Z" -> "2014-02-06T01:13:26.361Z"
npm ERR! Added: users.forivall
npm ERR! Added: readmeFilename: event-stream
npm ERR!     at RegClient.<anonymous> (/Users/jord/.nvm/v0.10.23/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:276:14)
npm ERR!     at Request.self.callback (/Users/jord/.nvm/v0.10.23/lib/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> (/Users/jord/.nvm/v0.10.23/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/Users/jord/.nvm/v0.10.23/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
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 Darwin 13.0.0
npm ERR! command "node" "/Users/jord/.nvm/v0.10.23/bin/npm" "star" "event-stream"
npm ERR! cwd /Users/jord/Dev/admin.vidigami.com
npm ERR! node -v v0.10.23
npm ERR! npm -v 1.3.26
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/jord/Dev/admin.vidigami.com/npm-debug.log
npm ERR! not ok code 0

it may be a OS X 10.9 + nvm issue, since that's a commonality in our error messages.

Contributor

fibo commented Feb 6, 2014

Me too, but only with some packages. I tryed with mdconf and I got an error, while with gulp it works.
Maybe it depends on the readmeFilename ?

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'star',
1 verbose cli   'mdconf' ]
2 info using npm@1.3.21
3 info using node@v0.10.24
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 verbose url raw mdconf
6 verbose url resolving [ 'https://registry.npmjs.org/', './mdconf' ]
7 verbose url resolved https://registry.npmjs.org/mdconf
8 info trying registry request attempt 1 at 15:07:13
9 http GET https://registry.npmjs.org/mdconf
10 http 200 https://registry.npmjs.org/mdconf
11 info starring mdconf
12 verbose starring { _id: 'mdconf',
12 verbose starring   _rev: '5-a12586e407c9e5c7a2cf94ea2f0fe75b',
12 verbose starring   users: { fibo: true } }
13 verbose url raw mdconf
14 verbose url resolving [ 'https://registry.npmjs.org/', './mdconf' ]
15 verbose url resolved https://registry.npmjs.org/mdconf
16 info trying registry request attempt 1 at 15:07:14
17 http PUT https://registry.npmjs.org/mdconf
18 http 403 https://registry.npmjs.org/mdconf
19 info trying registry request attempt 1 at 15:07:16
20 http PUT https://registry.npmjs.org/mdconf
21 http 403 https://registry.npmjs.org/mdconf
22 error Error: forbidden user: fibo not authorized to modify mdconf
22 error Deleted: versions.0.0.1.readme
22 error Deleted: versions.0.0.1.readmeFilename
22 error Deleted: versions.0.0.2.readme
22 error Deleted: versions.0.0.2.readmeFilename
22 error Changed: readme "\u000a# mdconf\u000a\u000a  Markdown driven configuration! Using the fantastic markdown parser [marked](https://github.com/chjj/marked).\u000a\u000a## Installation\u000a\u000a```\u000a$ npm install mdconf\u000a```\u000a\u000a## API\u000a\u000a```js\u000avar parse = require('mdconf');\u000aparse('string of markdown');\u000a// => Object\u000a```\u000a\u000a## Example\u000a\u000aMarkdown headings act as keys, list items with `:` act as maps,\u000aotherwise regular lists behave as.. lists.\u000a\u000a```md\u000a# Defaults\u000a\u000a  Since this is markdown you can still have regular text\u000a  to explain what the hell is going on.\u000a\u000a## Upload\u000a\u000a  - max: 200mb\u000a  - dir: /tmp\u000a\u000a### Thumbnail sizes\u000a\u000a  - 50x50\u000a  - 300x300\u000a  - 600x600\u000a  - 900x900\u000a\u000a## S3\u000a\u000a  - api key: 111111\u000a  - secret: 222222\u000a\u000a### Buckets\u000a\u000a  - avatars: myapp-avatars\u000a  - assets: myapp-assets\u000a  - files: myapp-files\u000a\u000a# Production\u000a\u000a## Upload\u000a\u000a  - max: 1gb\u000a  - dir: /data/uploads\u000a```\u000a\u000aoutput json:\u000a\u000a```json\u000a{\u000a  \"defaults\": {\u000a    \"upload\": {\u000a      \"max\": \"200mb\",\u000a      \"dir\": \"/tmp\",\u000a      \"thumbnail sizes\": [\u000a        \"50x50\",\u000a        \"300x300\",\u000a        \"600x600\",\u000a        \"900x900\"\u000a      ]\u000a    },\u000a    \"s3\": {\u000a      \"api key\": \"111111\",\u000a      \"secret\": \"222222\",\u000a      \"buckets\": {\u000a        \"avatars\": \"myapp-avatars\",\u000a        \"assets\": \"myapp-assets\",\u000a        \"files\": \"myapp-files\"\u000a      }\u000a    }\u000a  },\u000a  \"production\": {\u000a    \"upload\": {\u000a      \"max\": \"1gb\",\u000a      \"dir\": \"/data/uploads\"\u000a    }\u000a  }\u000a}\u000a```\u000a\u000a  With markdown blocks you could easily use this as a tool for\u000a  static site generation:\u000a\u000a```md\u000a\u000a# Scripts\u000a\u000a    document.write('<h1>mdconf</h1>')\u000a    document.write('<p>Markdown configuration is pretty cool</p>')\u000a\u000a# Styles\u000a\u000a  Main structural styling:\u000a\u000a    body {\u000a      padding: 50px;\u000a      font: 14px Helvetica;\u000a    }\u000a\u000a  Some other stuff:\u000a\u000a    button {\u000a      padding: 15px;\u000a    }\u000a```\u000a\u000a yields:\u000a\u000a```js\u000a{\u000a  \"scripts\": [\u000a    \"document.write('<h1>mdconf</h1>')\\ndocument.write('<p>Markdown configuration is pretty cool</p>')\"\u000a  ],\u000a  \"styles\": {\u000a    \"body { padding\": \"50px;\\n  font: 14px Helvetica;\\n}\",\u000a    \"button { padding\": \"15px;\\n}\"\u000a  }\u000a}\u000a```\u000a\u000a## License\u000a\u000a(The MIT License)\u000a\u000aCopyright (c) 2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\u000a\u000aPermission is hereby granted, free of charge, to any person obtaining\u000aa copy of this software and associated documentation files (the\u000a'Software'), to deal in the Software without restriction, including\u000awithout limitation the rights to use, copy, modify, merge, publish,\u000adistribute, sublicense, and/or sell copies of the Software, and to\u000apermit persons to whom the Software is furnished to do so, subject to\u000athe following conditions:\u000a\u000aThe above copyright notice and this permission notice shall be\u000aincluded in all copies or substantial portions of the Software.\u000a\u000aTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\u000aEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\u000aMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\u000aIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\u000aCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\u000aTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\u000aSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\u000a" -> "# mdconf\u000a\u000a  Markdown driven configuration!\u000a\u000a  Using the fantastic markdown parser [marked](https://github.com/chjj/marked).\u000a\u000a## Installation\u000a\u000a```\u000a$ npm install mdconf\u000a```\u000a\u000a## ports\u000a\u000a- [Python port](https://github.com/hit9/mdconf.py)\u000a\u000a## API\u000a\u000a```js\u000avar parse = require('mdconf');\u000aparse('string of markdown');\u000a// => Object\u000a```\u000a\u000a## Example\u000a\u000aMarkdown headings act as keys, list items with `:` act as maps,\u000aotherwise regular lists behave as.. lists.\u000a\u000a```markdown\u000a# Defaults\u000a\u000a  Since this is markdown you can still have regular text\u000a  to explain what the hell is going on.\u000a\u000a## Upload\u000a\u000a  - max: 200mb\u000a  - dir: /tmp\u000a\u000a### Thumbnail sizes\u000a\u000a  - 50x50\u000a  - 300x300\u000a  - 600x600\u000a  - 900x900\u000a\u000a## S3\u000a\u000a  - api key: 111111\u000a  - secret: 222222\u000a\u000a### Buckets\u000a\u000a  - avatars: myapp-avatars\u000a  - assets: myapp-assets\u000a  - files: myapp-files\u000a\u000a# Production\u000a\u000a## Upload\u000a\u000a  - max: 1gb\u000a  - dir: /data/uploads\u000a```\u000a\u000aoutput json:\u000a\u000a```json\u000a{\u000a  \"defaults\": {\u000a    \"upload\": {\u000a      \"max\": \"200mb\",\u000a      \"dir\": \"/tmp\",\u000a      \"thumbnail sizes\": [\u000a        \"50x50\",\u000a        \"300x300\",\u000a        \"600x600\",\u000a        \"900x900\"\u000a      ]\u000a    },\u000a    \"s3\": {\u000a      \"api key\": \"111111\",\u000a      \"secret\": \"222222\",\u000a      \"buckets\": {\u000a        \"avatars\": \"myapp-avatars\",\u000a        \"assets\": \"myapp-assets\",\u000a        \"files\": \"myapp-files\"\u000a      }\u000a    }\u000a  },\u000a  \"production\": {\u000a    \"upload\": {\u000a      \"max\": \"1gb\",\u000a      \"dir\": \"/data/uploads\"\u000a    }\u000a  }\u000a}\u000a```\u000a\u000a  With markdown blocks you could easily use this as a tool for\u000a  static site generation:\u000a\u000a```md\u000a\u000a# Scripts\u000a\u000a  My site does almost nothing:\u000a\u000a    document.write('<h1>mdconf</h1>')\u000a    document.write('<p>Markdown configuration is pretty cool</p>')\u000a\u000a# Styles\u000a\u000a  Main structural styling:\u000a\u000a    body {\u000a      padding: 50px;\u000a      font: 14px Helvetica;\u000a    }\u000a\u000a  Some other stuff:\u000a\u000a    button {\u000a      padding: 15px;\u000a    }\u000a```\u000a\u000a yields:\u000a\u000a```js\u000a{\u000a  \"scripts\": [\u000a    \"document.write('<h1>mdconf</h1>')\\ndocument.write('<p>Markdown configuration is pretty cool</p>')\"\u000a  ],\u000a  \"styles\": [\u000a    \"body {\\n  padding: 50px;\\n  font: 14px Helvetica;\\n}\",\u000a    \"button {\\n  padding: 15px;\\n}\"\u000a  ]\u000a}\u000a```\u000a\u000a## License\u000a\u000a(The MIT License)\u000a\u000aCopyright (c) 2013 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\u000a\u000aPermission is hereby granted, free of charge, to any person obtaining\u000aa copy of this software and associated documentation files (the\u000a'Software'), to deal in the Software without restriction, including\u000awithout limitation the rights to use, copy, modify, merge, publish,\u000adistribute, sublicense, and/or sell copies of the Software, and to\u000apermit persons to whom the Software is furnished to do so, subject to\u000athe following conditions:\u000a\u000aThe above copyright notice and this permission notice shall be\u000aincluded in all copies or substantial portions of the Software.\u000a\u000aTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\u000aEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\u000aMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\u000aIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\u000aCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\u000aTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\u000aSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\u000a"
22 error Changed: time.modified "2013-06-07T15:12:38.895Z" -> "2014-02-06T14:07:16.562Z"
22 error Added: users.fibo
22 error Added: readmeFilename: mdconf
22 error     at RegClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:275:14)
22 error     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:123:22)
22 error     at Request.EventEmitter.emit (events.js:98:17)
22 error     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:893:14)
22 error     at Request.EventEmitter.emit (events.js:117:20)
22 error     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:844:12)
22 error     at IncomingMessage.EventEmitter.emit (events.js:117:20)
22 error     at _stream_readable.js:920:16
22 error     at process._tickCallback (node.js:415:13)
23 error If you need help, you may report this *entire* log,
23 error including the npm and node versions, at:
23 error     <http://github.com/isaacs/npm/issues>
24 error System Windows_NT 6.1.7601
25 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "star" "mdconf"
26 error cwd C:\Users\gianlucacasati\github\fibo-gulptasks
27 error node -v v0.10.24
28 error npm -v 1.3.21
29 verbose exit [ 1, true ]

mbonaci commented Feb 14, 2014

"Deleted versions"?
"changed readme"?
This is a bit scary :)

$ npm star mv
npm http GET https://registry.npmjs.org/mv
npm http 200 https://registry.npmjs.org/mv
npm http PUT https://registry.npmjs.org/mv
npm http 403 https://registry.npmjs.org/mv
npm http PUT https://registry.npmjs.org/mv
npm http 403 https://registry.npmjs.org/mv
npm ERR! Error: forbidden user: mbonaci not authorized to modify mv
npm ERR! Deleted: versions.0.0.1.readme
npm ERR! Deleted: versions.0.0.2.readme
npm ERR! Deleted: versions.0.0.3.readme
npm ERR! Deleted: versions.0.0.4.readme
npm ERR! Deleted: versions.0.0.4.readmeFilename
npm ERR! Deleted: versions.0.0.5.readme
npm ERR! Deleted: versions.0.0.5.readmeFilename
npm ERR! Deleted: versions.1.0.0.readme
npm ERR! Deleted: versions.1.0.0.readmeFilename
npm ERR! Changed: readme "[![Build Status](https://secure.travis-ci.org/superjoe30/node-mv.png)](http://travis-ci.org/superjoe30/node-mv)\u000a\u000aUsage:\u000a------\u000a\u000a```javascript\u000avar mv;\u000a\u000amv = require('mv');\u000a\u000amv('source/file', 'dest/file', function(err) {\u000a  // done. it tried
fs.rename first, and then falls back to\u000a  
// piping the source file to the dest file and then unlinking\u000a  
// the source file.\u000a});\u000a```\u000a" -> "[![Build Status](https://secure.travis-ci.org/superjoe30/node-mv.png)](http://travis-ci.org/superjoe30/node-mv)\u000a\u000aUsage:\u000a------\u000a\u000a```js\u000avar mv = require('mv');\u000a\u000amv('source/file', 'dest/file', function(err) {\u000a  
// done. it tried fs.rename first, and then falls back to\u000a  
// piping the source file to the dest file and then unlinking\u000a  
// the source file.\u000a});\u000a```\u000a\u000aAnother example:\u000a\u000a```js\u000a
mv('source/dir', 'dest/a/b/c/dir', {mkdirp: true}, function(err) {\u000a  
// done. it first created all the necessary directories, and then\u000a  
// tried fs.rename, then falls back to using ncp to copy the dir\u000a  
// to dest and then rimraf to remove the source dir\u000a});\u000a```\u000a"
npm ERR! Changed: time.modified "2013-09-08T00:25:50.031Z" -> "2014-02-14T11:55:52.001Z"
npm ERR! Added: users.mbonaci
npm ERR! Added: readmeFilename: mv
npm ERR!     at RegClient.<anonymous> (c:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:272:14)
npm ERR!     at Request.self.callback (c:\Program Files\nodejs\node_modules\npm\node_modules\request\index.js:148: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\index.js:876:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (c:\Program Files\nodejs\node_modules\npm\node_modules\request\index.js:827:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:910:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7600
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodej
s\\node_modules\\npm\\bin\\npm-cli.js" "star" "mv"
npm ERR! cwd d:\mbo\dev\zaba-mfu\mfu-stalker-chokidar-mv
npm ERR! node -v v0.10.12
npm ERR! npm -v 1.2.32
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     d:\mbo\dev\zaba-mfu\mfu-stalker-chokidar-mv\npm-debug.log
npm ERR! not ok code 0

npm star is broken for me too:

npm http GET https://registry.npmjs.org/fastly
npm http 200 https://registry.npmjs.org/fastly
npm http PUT https://registry.npmjs.org/fastly
npm http 403 https://registry.npmjs.org/fastly
npm http PUT https://registry.npmjs.org/fastly
npm http 403 https://registry.npmjs.org/fastly
npm ERR! Error: forbidden user: maxogden not authorized to modify fastly
npm ERR! Deleted: versions.1.0.0.readme
npm ERR! Deleted: versions.1.0.0.readmeFilename
npm ERR! Deleted: versions.1.0.1.readme
npm ERR! Deleted: versions.1.0.1.readmeFilename
npm ERR! Changed: readme "## fastly\u000a### [Fastly](http://www.fastly.com) API client for Node.js\u000a\u000a[![Build Status](https://secure.travis-ci.org/thisandagain/fastly.png)](http://travis-ci.org/thisandagain/fastly)\u000a\u000a### Installation\u000a```bash\u000anpm install fastly\u000a```\u000a\u000a### Basic Use\u000a```javascript\u000avar fastly = require('fastly');\u000a\u000afastly.authenticate('yourapikey');\u000afastly.purge('myhost.com', '/cats', function (err, obj) {\u000a    if (err) {\u000a        console.dir(err);   // Oh no!\u000a    } else {\u000a        console.dir(obj);   // Contains the response body from the fastly API\u000a    }\u000a});\u000a```\u000a\u000a### Testing\u000a```bash\u000anpm test\u000a```" -> "## fastly\u000a### [Fastly](http://www.fastly.com) API client for Node.js\u000a\u000a[![Build Status](https://travis-ci.org/thisandagain/fastly.png?branch=master)](https://travis-ci.org/thisandagain/fastly)\u000a\u000a### Installation\u000a```bash\u000anpm install fastly\u000a```\u000a\u000a### Basic Use\u000a```javascript\u000avar fastly = require('fastly')('yourapikey');\u000a\u000afastly.request('GET', '/content/edge_check?url=mysite.com/foo', function (err, obj) {\u000a    if (err) return console.dir(err);   // Oh no!\u000a    console.dir(obj);                   // Response body from the fastly API\u000a});\u000a```\u000a\u000a### Helper Methods\u000aThe fastly module also includes a few limited \"helper\" methods that make working with common API resources a bit simpler:\u000a\u000a<table width=\"100%\">\u000a    <tr>\u000a        <th width=\"20%\">Method</td>\u000a        <th width=\"75%\">Example</td>\u000a        <th width=\"5%\"></td>\u000a    </tr>\u000a    <tr>\u000a        <td>purge</td>\u000a        <td><pre lang=\"javascript\"><code>fastly.purge('host.com', '/index.html', callback);</code></pre></td>\u000a        <td><a href=\"http://www.fastly.com/docs/api#purge\">Link</a></td>\u000a    </tr>\u000a    <tr>\u000a        <td>purgeAll</td>\u000a        <td><pre lang=\"javascript\"><code>fastly.purgeAll('myServiceId', callback);</code></pre></td>\u000a        <td><a href=\"http://www.fastly.com/docs/api#purge\">Link</a></td>\u000a    </tr>\u000a    <tr>\u000a        <td>purgeKey</td>\u000a        <td><pre lang=\"javascript\"><code>fastly.purgeKey('myServiceId', 'key', callback);</code></pre></td>\u000a        <td><a href=\"http://www.fastly.com/docs/api#purge\">Link</a></td>\u000a    </tr>\u000a    <tr>\u000a        <td>stats</td>\u000a        <td><pre lang=\"javascript\"><code>fastly.stats('myServiceId', callback);</code></pre></td>\u000a        <td><a href=\"http://www.fastly.com/docs/api#stats\">Link</a></td>\u000a    </tr>\u000a</table>\u000a\u000a### Testing\u000a```bash\u000anpm test\u000a```"
npm ERR! Changed: time.modified "2013-08-29T16:41:13.395Z" -> "2014-02-16T17:58:41.284Z"
npm ERR! Added: users.maxogden
npm ERR! Added: readmeFilename: fastly
npm ERR!     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:275:14)
npm ERR!     at Request.self.callback (/usr/local/lib/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> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
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 Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "star" "fastly"
npm ERR! cwd /Users/max
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/max/npm-debug.log
npm ERR! not ok code 0

Also not working here, tracing the issue back to npm-registry-client@0.3.3, seen here: https://github.com/npm/npm-registry-client/blob/9a6a0b8e456146f131b7127344b2a9962ca1b5b6/lib/request.js#L275

My error log:

jason@venkman[~] $ npm star fs.extra
npm http GET https://registry.npmjs.org/fs.extra
npm http 200 https://registry.npmjs.org/fs.extra
npm http PUT https://registry.npmjs.org/fs.extra
npm http 403 https://registry.npmjs.org/fs.extra
npm http PUT https://registry.npmjs.org/fs.extra
npm http 403 https://registry.npmjs.org/fs.extra
npm ERR! Error: forbidden user: rhodesjason not authorized to modify fs.extra
npm ERR! Deleted: versions.1.0.1.readme
npm ERR! Deleted: versions.1.1.1.readme
npm ERR! Deleted: versions.1.1.2.readme
npm ERR! Deleted: versions.1.1.3.readme
npm ERR! Deleted: versions.1.1.5.readme
npm ERR! Deleted: versions.1.2.0.readme
npm ERR! Deleted: versions.1.2.1.readme
npm ERR! Deleted: versions.1.2.1.readmeFilename
npm ERR! Changed: time.modified "2013-05-29T03:36:29.716Z" -> "2014-02-17T17:18:50.759Z"
npm ERR! Added: users.rhodesjason
npm ERR! Added: readme
npm ERR! Added: readmeFilename: fs.extra
npm ERR!     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:275:14)
npm ERR!     at Request.self.callback (/usr/local/lib/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> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR!     at Request.EventEmitter.emit (events.js:117:20)
npm ERR!     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:844:12)
npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
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 Darwin 13.0.2
npm ERR! command "node" "/usr/local/bin/npm" "star" "fs.extra"
npm ERR! cwd /Users/jason
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/jason/npm-debug.log
npm ERR! not ok code 0

@iarna iarna added the support label Oct 3, 2014

Contributor

othiym23 commented Oct 3, 2014

I don't remember when we fixed this, but it's fixed in the registry, npm 1.4.28, and npm 2.x. Sorry for not updating it before the opener started working at npm!

@othiym23 othiym23 closed this Oct 3, 2014

Contributor

zeke commented Oct 3, 2014

⭐️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment