-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interval v2.0.0 not available via npm #78
Comments
Thanks! That's really strange, since |
Wow that is something very strange 22:03 $ npm publish
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
npm WARN prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.
> react-interval@2.0.0 prepublish /Users/nkbt/nkbt/react-works/packages/interval
> npm start -s build
src/Component.js -> lib/Component.js
src/index.js -> lib/index.js
Hash: 001245cb74ea6e3ef96b
Version: webpack 2.5.1
Time: 1058ms
Asset Size Chunks Chunk Names
react-interval.js 7.3 kB 0 [emitted] main
[0] ./src/Component.js 3.81 kB {0} [built]
[1] ./src/index.js 175 bytes {0} [built]
+ 1 hidden modules
Hash: 834bf6b546b2b239ead1
Version: webpack 2.5.1
Time: 1180ms
Asset Size Chunks Chunk Names
react-interval.min.js 2.87 kB 0 [emitted] main
[0] ./src/Component.js 3.81 kB {0} [built]
[1] ./src/index.js 175 bytes {0} [built]
+ 1 hidden modules
npm ERR! publish Failed PUT 403
npm ERR! Darwin 16.5.0
npm ERR! argv "/Users/nkbt/.nvm/versions/node/v7.10.0/bin/node" "/Users/nkbt/.nvm/versions/node/v7.10.0/bin/npm" "publish"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code E403
npm ERR! "You cannot publish over the previously published version 2.0.0." : react-interval
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/nkbt/.npm/_logs/2017-05-17T12_04_07_742Z-debug.log
✘-1 ~/nkbt/react-works/packages/interval [master|✔]
22:04 $ cat /Users/nkbt/.npm/_logs/2017-05-17T12_04_07_742Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/Users/nkbt/.nvm/versions/node/v7.10.0/bin/node',
1 verbose cli '/Users/nkbt/.nvm/versions/node/v7.10.0/bin/npm',
1 verbose cli 'publish' ]
2 info using npm@4.2.0
3 info using node@v7.10.0
4 verbose publish [ '.' ]
5 silly cache add args [ '.', null ]
6 verbose cache add spec .
7 silly cache add parsed spec Result {
7 silly cache add raw: '.',
7 silly cache add scope: null,
7 silly cache add escapedName: null,
7 silly cache add name: null,
7 silly cache add rawSpec: '.',
7 silly cache add spec: '/Users/nkbt/nkbt/react-works/packages/interval',
7 silly cache add type: 'directory' }
8 verbose addLocalDirectory /Users/nkbt/.npm/react-interval/2.0.0/package.tgz not in flight; packing
9 verbose correctMkdir /Users/nkbt/.npm correctMkdir not in flight; initializing
10 warn prepublish-on-install As of npm@5, `prepublish` scripts will run only for `npm publish`.
11 warn prepublish-on-install (In npm@4 and previous versions, it also runs for `npm install`.)
12 warn prepublish-on-install See the deprecation note in `npm help scripts` for more information.
13 info lifecycle react-interval@2.0.0~prepublish: react-interval@2.0.0
14 verbose lifecycle react-interval@2.0.0~prepublish: unsafe-perm in lifecycle true
15 verbose lifecycle react-interval@2.0.0~prepublish: PATH: /Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/nkbt/nkbt/react-works/packages/interval/node_modules/.bin:/Users/nkbt/.nvm/versions/node/v7.10.0/bin:/Users/nkbt/.rvm/gems/ruby-2.1.5/bin:/Users/nkbt/.rvm/gems/ruby-2.1.5@global/bin:/Users/nkbt/.rvm/rubies/ruby-2.1.5/bin:/Users/nkbt/go/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/nkbt/.local/bin:/Users/nkbt/.rvm/bin:/Users/nkbt/.rvm/gems/ruby-2.1.5/bin
16 verbose lifecycle react-interval@2.0.0~prepublish: CWD: /Users/nkbt/nkbt/react-works/packages/interval
17 silly lifecycle react-interval@2.0.0~prepublish: Args: [ '-c', 'npm start -s build' ]
18 silly lifecycle react-interval@2.0.0~prepublish: Returned: code: 0 signal: null
19 info lifecycle react-interval@2.0.0~prepare: react-interval@2.0.0
20 silly lifecycle react-interval@2.0.0~prepare: no script for prepare, continuing
21 verbose tar pack [ '/Users/nkbt/.npm/react-interval/2.0.0/package.tgz',
21 verbose tar pack '/Users/nkbt/nkbt/react-works/packages/interval' ]
22 verbose tarball /Users/nkbt/.npm/react-interval/2.0.0/package.tgz
23 verbose folder /Users/nkbt/nkbt/react-works/packages/interval
24 verbose addLocalTarball adding from inside cache /Users/nkbt/.npm/react-interval/2.0.0/package.tgz
25 verbose correctMkdir /Users/nkbt/.npm correctMkdir not in flight; initializing
26 silly cache afterAdd react-interval@2.0.0
27 verbose afterAdd /Users/nkbt/.npm/react-interval/2.0.0/package/package.json not in flight; writing
28 verbose correctMkdir /Users/nkbt/.npm correctMkdir not in flight; initializing
29 verbose afterAdd /Users/nkbt/.npm/react-interval/2.0.0/package/package.json written
30 silly publish { name: 'react-interval',
30 silly publish version: '2.0.0',
30 silly publish description: 'Safe React wrapper for setInterval',
30 silly publish main: 'lib/index.js',
30 silly publish config: { component: 'ReactInterval' },
30 silly publish scripts:
30 silly publish { start: '../../scripts/start.js',
30 silly publish prepublish: 'npm start -s build' },
30 silly publish repository:
30 silly publish { type: 'git',
30 silly publish url: 'https://github.com/nkbt/react-works/tree/master/packages/interval' },
30 silly publish keywords:
30 silly publish [ 'component',
30 silly publish 'react-component',
30 silly publish 'react',
30 silly publish 'interval',
30 silly publish 'timer',
30 silly publish 'timeout',
30 silly publish 'setTimeout',
30 silly publish 'setInterval',
30 silly publish 'repeater' ],
30 silly publish author: { name: 'Nik Butenko', email: 'nik@butenko.me' },
30 silly publish license: 'MIT',
30 silly publish bugs:
30 silly publish { url: 'https://github.com/nkbt/react-works/issues',
30 silly publish email: 'nik@butenko.me' },
30 silly publish homepage: 'https://github.com/nkbt/react-works/tree/master/packages/interval',
30 silly publish peerDependencies: { react: '^15.3.0' },
30 silly publish dependencies: { 'prop-types': '^15.5.10' },
30 silly publish files: [ 'build', 'lib', 'src', 'LICENSE', 'package.json', 'README.md' ],
30 silly publish readme: '# react-interval [![npm](https://img.shields.io/npm/v/react-interval.svg?style=flat-square)](https://www.npmjs.com/package/react-interval)\n\nSafe React wrapper for setInterval\n\n[![Gitter](https://img.shields.io/gitter/room/nkbt/help.svg?style=flat-square)](https://gitter.im/nkbt/help)\n[![Dependencies](https://img.shields.io/david/nkbt/react-interval.svg?style=flat-square)](https://david-dm.org/nkbt/react-interval)\n[![Dev Dependencies](https://img.shields.io/david/dev/nkbt/react-interval.svg?style=flat-square)](https://david-dm.org/nkbt/react-interval#info=devDependencies)\n\n\n## Installation\n\n\n### NPM\n\n```sh\nnpm install --save react react-interval\n```\n\nDon\'t forget to manually install peer dependencies (`react`) if you use npm@3.\n\n\n### 1998 Script Tag:\n\n```html\n<script src="https://unpkg.com/react/dist/react.js"></script>\n<script src="https://unpkg.com/react-interval/build/react-interval.js"></script>\n(Module exposed as `ReactInterval`)\n```\n\n\n## Demo\n\n[http://nkbt.github.io/react-interval](http://nkbt.github.io/react-interval)\n\n## Codepen demo\n\n[http://codepen.io/nkbt/pen/ZGmpoO](http://codepen.io/nkbt/pen/ZGmpoO?editors=101)\n\n## Usage\n\n### Quickstart\nStart counting on render\n\n```js\nimport ReactInterval from \'react-interval\';\n\nconst App = React.createClass({\n getInitialState() {\n return {count: 0};\n },\n\n render() {\n const {count} = this.state;\n\n return (\n <div>\n {count}\n <ReactInterval timeout={1000} enabled={true}\n callback={() => this.setState({count: this.state.count + 1})} />\n </div>\n );\n }\n});\n```\n\n### Full example\nChange timeout on the fly, start and stop counting\n\n```js\nimport React from \'react\';\nimport ReactDOM from \'react-dom\';\nimport ReactInterval from \'react-interval\';\n\nconst App = React.createClass({\n getInitialState() {\n return {\n enabled: false,\n timeout: 1000,\n count: 0\n };\n },\n\n render() {\n const {timeout, enabled, count} = this.state;\n\n return (\n <div>\n <ReactInterval {...{timeout, enabled}}\n callback={() => this.setState({count: this.state.count + 1})} />\n\n <input type="number" step="200" min="200" max="5000" value={this.state.timeout}\n onChange={({target: {value}}) => this.setState({timeout: parseInt(value, 10)})} /> \n\n <button disabled={enabled} onClick={() => this.setState({enabled: true})}>\n Start</button> \n\n <button disabled={!enabled} onClick={() => this.setState({enabled: false})}>\n Stop</button> \n\n {count}\n </div>\n );\n }\n});\n\nconst appRoot = document.createElement(\'div\');\ndocument.body.appendChild(appRoot);\nReactDOM.render(<App />, appRoot);\n```\n\n## Options\n\n\n#### `callback`: PropTypes.func.isRequired\n\nFunction repeatedly called after timeout\n\n\n#### `enabled`: PropTypes.bool (default: false)\n\nShould start timer?\n\n\n#### `timeout`: PropTypes.number (default: 1000)\n\nTimeout before each `callback` call\n\n\n## License\n\nMIT\n',
30 silly publish readmeFilename: 'README.md',
30 silly publish _id: 'react-interval@2.0.0',
30 silly publish _shasum: 'c6737f9fc60181a6eea00a47e4fb7482f73b4200',
30 silly publish _from: '.' }
31 info lifecycle react-interval@2.0.0~prepublishOnly: react-interval@2.0.0
32 silly lifecycle react-interval@2.0.0~prepublishOnly: no script for prepublishOnly, continuing
33 verbose getPublishConfig undefined
34 silly mapToRegistry name react-interval
35 silly mapToRegistry using default registry
36 silly mapToRegistry registry https://registry.npmjs.org/
37 silly mapToRegistry data Result {
37 silly mapToRegistry raw: 'react-interval',
37 silly mapToRegistry scope: null,
37 silly mapToRegistry escapedName: 'react-interval',
37 silly mapToRegistry name: 'react-interval',
37 silly mapToRegistry rawSpec: '',
37 silly mapToRegistry spec: 'latest',
37 silly mapToRegistry type: 'tag' }
38 silly mapToRegistry uri https://registry.npmjs.org/react-interval
39 verbose publish registryBase https://registry.npmjs.org/
40 silly publish uploading /Users/nkbt/.npm/react-interval/2.0.0/package.tgz
41 verbose request uri https://registry.npmjs.org/react-interval
42 verbose request sending authorization for write operation
43 info attempt registry request try #1 at 10:04:06 PM
44 verbose request id a7047a8340a6cf1e
45 http request PUT https://registry.npmjs.org/react-interval
46 http 403 https://registry.npmjs.org/react-interval
47 verbose headers { 'content-type': 'application/json',
47 verbose headers 'cache-control': 'max-age=300',
47 verbose headers 'content-length': '95',
47 verbose headers 'accept-ranges': 'bytes',
47 verbose headers date: 'Wed, 17 May 2017 12:04:07 GMT',
47 verbose headers via: '1.1 varnish',
47 verbose headers connection: 'keep-alive',
47 verbose headers 'x-served-by': 'cache-syd1623-SYD',
47 verbose headers 'x-cache': 'MISS',
47 verbose headers 'x-cache-hits': '0',
47 verbose headers 'x-timer': 'S1495022647.944578,VS0,VE752',
47 verbose headers vary: 'Accept-Encoding' }
48 verbose request invalidating /Users/nkbt/.npm/registry.npmjs.org/react-interval on PUT
49 error publish Failed PUT 403
50 verbose stack Error: "You cannot publish over the previously published version 2.0.0." : react-interval
50 verbose stack at makeError (/Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:304:12)
50 verbose stack at CachingRegistryClient.<anonymous> (/Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:292:14)
50 verbose stack at Request._callback (/Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:212:14)
50 verbose stack at Request.self.callback (/Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/node_modules/request/request.js:186:22)
50 verbose stack at emitTwo (events.js:106:13)
50 verbose stack at Request.emit (events.js:194:7)
50 verbose stack at Request.<anonymous> (/Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/node_modules/request/request.js:1081:10)
50 verbose stack at emitOne (events.js:96:13)
50 verbose stack at Request.emit (events.js:191:7)
50 verbose stack at IncomingMessage.<anonymous> (/Users/nkbt/.nvm/versions/node/v7.10.0/lib/node_modules/npm/node_modules/request/request.js:1001:12)
51 verbose statusCode 403
52 verbose pkgid react-interval
53 verbose cwd /Users/nkbt/nkbt/react-works/packages/interval
54 error Darwin 16.5.0
55 error argv "/Users/nkbt/.nvm/versions/node/v7.10.0/bin/node" "/Users/nkbt/.nvm/versions/node/v7.10.0/bin/npm" "publish"
56 error node v7.10.0
57 error npm v4.2.0
58 error code E403
59 error "You cannot publish over the previously published version 2.0.0." : react-interval
60 error If you need help, you may report this error at:
60 error <https://github.com/npm/npm/issues>
61 verbose exit [ 1, true ]
✔ ~/nkbt/react-works/packages/interval [master|✔]
22:04 $ |
Just republished as 2.0.1. |
Thanks @nkbt - that's working great now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: