Skip to content

Instantly share code, notes, and snippets.

@halbgut
Created March 18, 2018 22:12
Show Gist options
  • Select an option

  • Save halbgut/2309a2e1e4fbcce125ca6e0d85e8d209 to your computer and use it in GitHub Desktop.

Select an option

Save halbgut/2309a2e1e4fbcce125ca6e0d85e8d209 to your computer and use it in GitHub Desktop.
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
2 info using npm@5.7.1
3 info using node@v8.9.3
4 verbose npm-session 7637eeba09e2f1e4
5 verbose publish [ '.' ]
6 info lifecycle download-as-csv@0.1.1~prepublish: download-as-csv@0.1.1
7 info lifecycle download-as-csv@0.1.1~prepare: download-as-csv@0.1.1
8 info lifecycle download-as-csv@0.1.1~prepublishOnly: download-as-csv@0.1.1
9 info lifecycle download-as-csv@0.1.1~prepack: download-as-csv@0.1.1
10 info lifecycle download-as-csv@0.1.1~postpack: download-as-csv@0.1.1
11 verbose getPublishConfig undefined
12 silly mapToRegistry name download-as-csv
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data { type: 'tag',
15 silly mapToRegistry registry: true,
15 silly mapToRegistry where: undefined,
15 silly mapToRegistry raw: 'download-as-csv',
15 silly mapToRegistry name: 'download-as-csv',
15 silly mapToRegistry escapedName: 'download-as-csv',
15 silly mapToRegistry scope: undefined,
15 silly mapToRegistry rawSpec: '',
15 silly mapToRegistry saveSpec: null,
15 silly mapToRegistry fetchSpec: 'latest',
15 silly mapToRegistry gitRange: undefined,
15 silly mapToRegistry gitCommittish: undefined,
15 silly mapToRegistry hosted: undefined }
16 silly mapToRegistry uri https://registry.npmjs.org/download-as-csv
17 verbose publish registryBase https://registry.npmjs.org/
18 silly publish uploading /var/folders/3t/8gscmr0d0fd_1665kf1gr2l40000gp/T/npm-40725-68df1aa1/tmp/fromDir-a629d962/package.tgz
19 verbose request uri https://registry.npmjs.org/download-as-csv
20 verbose request sending authorization for write operation
21 info attempt registry request try #1 at 22:57:25
22 verbose request using bearer token for auth
23 verbose request id 860b2ae52c00ba70
24 http request PUT https://registry.npmjs.org/download-as-csv
25 http 400 https://registry.npmjs.org/download-as-csv
26 verbose headers { 'content-type': 'application/json',
26 verbose headers 'cache-control': 'max-age=300',
26 verbose headers 'content-length': '123',
26 verbose headers 'accept-ranges': 'bytes',
26 verbose headers date: 'Sun, 18 Mar 2018 21:57:26 GMT',
26 verbose headers via: '1.1 varnish',
26 verbose headers connection: 'keep-alive',
26 verbose headers 'x-served-by': 'cache-hhn1530-HHN',
26 verbose headers 'x-cache': 'MISS',
26 verbose headers 'x-cache-hits': '0',
26 verbose headers 'x-timer': 'S1521410246.759170,VS0,VE903',
26 verbose headers vary: 'Accept-Encoding, Accept' }
27 error publish Failed PUT 400
28 verbose stack Error: That word is not allowed. Please contact support (support@npmjs.com) if you believe you received this in error. : download-as-csv
28 verbose stack at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:314:12)
28 verbose stack at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:302:14)
28 verbose stack at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:216:14)
28 verbose stack at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:186:22)
28 verbose stack at emitTwo (events.js:126:13)
28 verbose stack at Request.emit (events.js:214:7)
28 verbose stack at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1163:10)
28 verbose stack at emitOne (events.js:116:13)
28 verbose stack at Request.emit (events.js:211:7)
28 verbose stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1085:12)
28 verbose stack at Object.onceWrapper (events.js:313:30)
28 verbose stack at emitNone (events.js:111:20)
28 verbose stack at IncomingMessage.emit (events.js:208:7)
28 verbose stack at endReadableNT (_stream_readable.js:1056:12)
28 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
28 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
29 verbose statusCode 400
30 verbose pkgid download-as-csv
31 verbose cwd /Users/lschmid/Software/personal/download-as-csv
32 verbose Darwin 16.7.0
33 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
34 verbose node v8.9.3
35 verbose npm v5.7.1
36 error code E400
37 error That word is not allowed. Please contact support (support@npmjs.com) if you believe you received this in error. : download-as-csv
38 verbose exit [ 1, true ]
@Gyumeijie
Copy link

Hey, I met this problem before. I have sent email to support@npmjs.com and got the following reply:

Due to our spam mitigation, you are unable to publish an npm package with the word "download" in the title. I suggest selecting a different package name and trying again.

I removed the download , and it works finally. So you can try this way. Oh anyway, the name of npm package I used is download-from-github and I renamed it to github-files-fetcher.

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