Ответы пользователя по тегу npm
  • Может ли кто-то помочь с Node.js (npm) под windows 8.1?

    @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 ]
    Ответ написан