@ValentineNow

Может ли кто-то помочь с Node.js (npm) под windows 8.1?

Решил разобраться с Node.js. Возникает ошибка при создании пользователя (npm adduser - ввожу имя, эл. почту). После ошибки создается npm-debug.log:
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   'adduser' ]
2 info using npm@2.10.1
3 info using node@v0.12.4
4 verbose adduser before first PUT { _id: 'org.couchdb.user:valentine',
4 verbose adduser   name: 'valentine',
4 verbose adduser   password: 'XXXXX',
4 verbose adduser   email: 'valentinesunnyday@gmail.com',
4 verbose adduser   type: 'user',
4 verbose adduser   roles: [],
4 verbose adduser   date: '2015-06-10T13:15:52.749Z' }
5 verbose request uri https://registry.npmjs.org/-/user/org.couchdb.user:valentine
6 verbose request new user, so can't send auth
7 info attempt registry request try #1 at 16:15:52
8 verbose request id 49f7c66703fe69de
9 http request PUT https://registry.npmjs.org/-/user/org.couchdb.user:valentine
10 http 400 https://registry.npmjs.org/-/user/org.couchdb.user:valentine
11 verbose headers { 'content-type': 'application/json',
11 verbose headers   'cache-control': 'max-age=60',
11 verbose headers   'content-length': '57',
11 verbose headers   'accept-ranges': 'bytes',
11 verbose headers   date: 'Wed, 10 Jun 2015 14:14:51 GMT',
11 verbose headers   via: '1.1 varnish',
11 verbose headers   connection: 'keep-alive',
11 verbose headers   'x-served-by': 'cache-fra1227-FRA',
11 verbose headers   'x-cache': 'MISS',
11 verbose headers   'x-cache-hits': '0',
11 verbose headers   'x-timer': 'S1433945690.712885,VS0,VE776' }
12 verbose request invalidating C:\Users\Люда\AppData\Roaming\npm-cache\registry.npmjs.org\-\user\org.couchdb.user_3Avalentine on PUT
13 verbose adduser back [ { [Error: Unknown error while authenticating : -/user/org.couchdb.user:valentine] statusCode: 400, code: 'E400' },
13 verbose adduser   { ok: false, error: 'Unknown error while authenticating' },
13 verbose adduser   '{"ok":false,"error":"Unknown error while authenticating"}' ]
14 verbose stack Error: Unknown error while authenticating : -/user/org.couchdb.user:valentine
14 verbose stack     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:247:14)
14 verbose stack     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:170:14)
14 verbose stack     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:368:22)
14 verbose stack     at Request.emit (events.js:110:17)
14 verbose stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1219:14)
14 verbose stack     at Request.emit (events.js:129:20)
14 verbose stack     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1167:12)
14 verbose stack     at IncomingMessage.emit (events.js:129:20)
14 verbose stack     at _stream_readable.js:908:16
14 verbose stack     at process._tickCallback (node.js:355:11)
15 verbose statusCode 400
16 verbose cwd C:\node\learnstart\npm\supermodule
17 error Windows_NT 6.2.9200
18 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "adduser"
19 error node v0.12.4
20 error npm  v2.10.1
21 error code E400
22 error Unknown error while authenticating : -/user/org.couchdb.user:valentine
23 error If you need help, you may report this error at:
23 error     <https://github.com/npm/npm/issues>
24 verbose exit [ 1, true ]
  • Вопрос задан
  • 1146 просмотров
Решения вопроса 2
Scorpi
@Scorpi
Обновите npm:
npm install npm -g
Зайдите на сайт https://www.npmjs.com/
Войдите в профиль и смените пароль
Ответ написан
@ValentineNow Автор вопроса
Выполнил ваши инструкции. После создания ничего пользователя не выдало ничего (ни ошибки ни подтверждения). Затем при команде npm publish снова ошибка, подскажите пожалуйста.
Лог:
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   'publish' ]
2 info using npm@2.10.1
3 info using node@v0.12.4
4 verbose publish [ '.' ]
5 silly cache add args [ '.', null ]
6 verbose cache add spec .
7 silly cache add parsed spec { raw: '.',
7 silly cache add   scope: null,
7 silly cache add   name: null,
7 silly cache add   rawSpec: '.',
7 silly cache add   spec: 'C:\\node\\learnstart\\npm\\supermodule',
7 silly cache add   type: 'directory' }
8 verbose addLocalDirectory C:\Users\Люда\AppData\Roaming\npm-cache\supermodule\1.0.0\package.tgz not in flight; packing
9 verbose tar pack [ 'C:\\Users\\Люда\\AppData\\Roaming\\npm-cache\\supermodule\\1.0.0\\package.tgz',
9 verbose tar pack   'C:\\node\\learnstart\\npm\\supermodule' ]
10 verbose tarball C:\Users\Люда\AppData\Roaming\npm-cache\supermodule\1.0.0\package.tgz
11 verbose folder C:\node\learnstart\npm\supermodule
12 info prepublish supermodule@1.0.0
13 verbose addLocalTarball adding from inside cache C:\Users\Люда\AppData\Roaming\npm-cache\supermodule\1.0.0\package.tgz
14 silly cache afterAdd supermodule@1.0.0
15 verbose afterAdd C:\Users\Люда\AppData\Roaming\npm-cache\supermodule\1.0.0\package\package.json not in flight; writing
16 verbose afterAdd C:\Users\Люда\AppData\Roaming\npm-cache\supermodule\1.0.0\package\package.json written
17 silly publish { name: 'supermodule',
17 silly publish   version: '1.0.0',
17 silly publish   description: '',
17 silly publish   main: 'index.js',
17 silly publish   scripts: { test: 'echo "Error: no test specified" && exit 1' },
17 silly publish   author: '',
17 silly publish   license: 'ISC',
17 silly publish   readme: 'ERROR: No README data found!',
17 silly publish   _id: 'supermodule@1.0.0',
17 silly publish   _shasum: '0656b9affe33df3342969e62a4dc54221a07c13e',
17 silly publish   _from: '.' }
18 verbose getPublishConfig undefined
19 silly mapToRegistry name supermodule
20 silly mapToRegistry using default registry
21 silly mapToRegistry registry https://registry.npmjs.org/
22 silly mapToRegistry uri https://registry.npmjs.org/supermodule
23 verbose publish registryBase https://registry.npmjs.org/
24 silly publish uploading C:\Users\Люда\AppData\Roaming\npm-cache\supermodule\1.0.0\package.tgz
25 verbose request uri https://registry.npmjs.org/supermodule
26 verbose request sending authorization for write operation
27 info attempt registry request try #1 at 17:00:00
28 verbose request using bearer token for auth
29 verbose request id 442fbfb04083480a
30 http request PUT https://registry.npmjs.org/supermodule
31 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org
32 info attempt registry request try #2 at 17:00:22
33 verbose request using bearer token for auth
34 http request PUT https://registry.npmjs.org/supermodule
35 info retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org
36 info attempt registry request try #3 at 17:01:34
37 verbose request using bearer token for auth
38 http request PUT https://registry.npmjs.org/supermodule
39 http 403 https://registry.npmjs.org/supermodule
40 verbose headers { 'content-type': 'application/json',
40 verbose headers   'cache-control': 'max-age=60',
40 verbose headers   'content-length': '103',
40 verbose headers   'accept-ranges': 'bytes',
40 verbose headers   date: 'Wed, 10 Jun 2015 15:00:33 GMT',
40 verbose headers   via: '1.1 varnish',
40 verbose headers   connection: 'keep-alive',
40 verbose headers   'x-served-by': 'cache-fra1221-FRA',
40 verbose headers   'x-cache': 'MISS',
40 verbose headers   'x-cache-hits': '0',
40 verbose headers   'x-timer': 'S1433948432.181906,VS0,VE990' }
41 verbose request invalidating C:\Users\Люда\AppData\Roaming\npm-cache\registry.npmjs.org\supermodule on PUT
42 error publish Failed PUT 403
43 verbose stack Error: You do not have permission to publish 'supermodule'. Are you logged in as the correct user? : supermodule
43 verbose stack     at CachingRegistryClient.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:247:14)
43 verbose stack     at Request._callback (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:170:14)
43 verbose stack     at Request.self.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:368:22)
43 verbose stack     at Request.emit (events.js:110:17)
43 verbose stack     at Request.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1219:14)
43 verbose stack     at Request.emit (events.js:129:20)
43 verbose stack     at IncomingMessage.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1167:12)
43 verbose stack     at IncomingMessage.emit (events.js:129:20)
43 verbose stack     at _stream_readable.js:908:16
43 verbose stack     at process._tickCallback (node.js:355:11)
44 verbose statusCode 403
45 verbose pkgid supermodule
46 verbose cwd C:\node\learnstart\npm\supermodule
47 error Windows_NT 6.2.9200
48 error argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publish"
49 error node v0.12.4
50 error npm  v2.10.1
51 error code E403
52 error You do not have permission to publish 'supermodule'. Are you logged in as the correct user? : supermodule
53 error If you need help, you may report this error at:
53 error     <https://github.com/npm/npm/issues>
54 verbose exit [ 1, true ]
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы
23 нояб. 2024, в 01:31
1000 руб./за проект
23 нояб. 2024, в 00:16
2000 руб./за проект
22 нояб. 2024, в 23:55
3000 руб./за проект