Skip to content
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

There was a problem about a npm package of publish #6

Open
YuFy1314 opened this issue Oct 23, 2018 · 0 comments
Open

There was a problem about a npm package of publish #6

YuFy1314 opened this issue Oct 23, 2018 · 0 comments

Comments

@YuFy1314
Copy link

index.js and package.json are in the same directory,
package.json:

index.js:
exports.printMsg = function() { console.log("This is a message from the demo package of yufy"); }

npm-debug.log:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Users\\Administrator\\AppData\\Roaming\\nvm\\v4.8.1\\node.exe',
1 verbose cli   'C:\\Users\\Administrator\\AppData\\Roaming\\nvm\\v4.8.1\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'publish' ]
2 info using npm@3.5.4
3 info using node@v4.8.1
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   name: null,
7 silly cache add   rawSpec: '.',
7 silly cache add   spec: 'D:\\myselfProject\\test\\test',
7 silly cache add   type: 'directory' }
8 verbose addLocalDirectory C:\Users\Administrator\AppData\Roaming\npm-cache\yufytest\1.0.0\package.tgz not in flight; packing
9 info lifecycle yufytest@1.0.0~prepublish: yufytest@1.0.0
10 silly lifecycle yufytest@1.0.0~prepublish: no script for prepublish, continuing
11 verbose tar pack [ 'C:\\Users\\Administrator\\AppData\\Roaming\\npm-cache\\yufytest\\1.0.0\\package.tgz',
11 verbose tar pack   'D:\\myselfProject\\test\\test' ]
12 verbose tarball C:\Users\Administrator\AppData\Roaming\npm-cache\yufytest\1.0.0\package.tgz
13 verbose folder D:\myselfProject\test\test
14 verbose addLocalTarball adding from inside cache C:\Users\Administrator\AppData\Roaming\npm-cache\yufytest\1.0.0\package.tgz
15 silly cache afterAdd yufytest@1.0.0
16 verbose afterAdd C:\Users\Administrator\AppData\Roaming\npm-cache\yufytest\1.0.0\package\package.json not in flight; writing
17 verbose afterAdd C:\Users\Administrator\AppData\Roaming\npm-cache\yufytest\1.0.0\package\package.json written
18 silly publish { name: 'yufytest',
18 silly publish   version: '1.0.0',
18 silly publish   description: '这里是说明',
18 silly publish   main: 'index.js',
18 silly publish   scripts: { test: 'echo "Error: no test specified" && exit 1' },
18 silly publish   author: { name: 'yufy' },
18 silly publish   license: 'ISC',
18 silly publish   readme: '这里是说明',
18 silly publish   readmeFilename: 'readme.md',
18 silly publish   _id: 'yufytest@1.0.0',
18 silly publish   _shasum: '8ce9e854871e2af1a41199f33613b0e2f75917e3',
18 silly publish   _from: '.' }
19 verbose getPublishConfig undefined
20 silly mapToRegistry name yufytest
21 silly mapToRegistry using default registry
22 silly mapToRegistry registry http://192.168.7.81:7001/
23 silly mapToRegistry uri http://192.168.7.81:7001/yufytest
24 verbose publish registryBase http://192.168.7.81:7001/
25 silly publish uploading C:\Users\Administrator\AppData\Roaming\npm-cache\yufytest\1.0.0\package.tgz
26 verbose request uri http://192.168.7.81:7001/yufytest
27 verbose request sending authorization for write operation
28 info attempt registry request try #1 at 17:00:58
29 verbose request id 11fe825f67ee43c2
30 http request PUT http://192.168.7.81:7001/yufytest
31 http 403 http://192.168.7.81:7001/yufytest
32 verbose headers { 'content-type': 'application/json; charset=utf-8',
32 verbose headers   'x-readtime': '8',
32 verbose headers   'content-length': '132',
32 verbose headers   date: 'Tue, 23 Oct 2018 09:00:01 GMT',
32 verbose headers   connection: 'keep-alive' }
33 verbose request invalidating C:\Users\Administrator\AppData\Roaming\npm-cache\192.168.7.81_7001\yufytest on PUT
34 error publish Failed PUT 403
35 verbose stack Error: no_perms only allow publish with @capd, @sbrinfo, @soar, @test, @clpd, @ocls, @clfi, @swagger, @demo scope(s): yufytest
35 verbose stack     at makeError (C:\Users\Administrator\AppData\Roaming\nvm\v4.8.1\node_modules\npm\node_modules\npm-registry-client\lib\request.js:264:12)
35 verbose stack     at CachingRegistryClient.<anonymous> (C:\Users\Administrator\AppData\Roaming\nvm\v4.8.1\node_modules\npm\node_modules\npm-registry-client\lib\request.js:252:14)
35 verbose stack     at Request._callback (C:\Users\Administrator\AppData\Roaming\nvm\v4.8.1\node_modules\npm\node_modules\npm-registry-client\lib\request.js:172:14)
35 verbose stack     at Request.self.callback (C:\Users\Administrator\AppData\Roaming\nvm\v4.8.1\node_modules\npm\node_modules\request\request.js:198:22)
35 verbose stack     at emitTwo (events.js:87:13)
35 verbose stack     at Request.emit (events.js:172:7)
35 verbose stack     at Request.<anonymous> (C:\Users\Administrator\AppData\Roaming\nvm\v4.8.1\node_modules\npm\node_modules\request\request.js:1035:10)
35 verbose stack     at emitOne (events.js:82:20)
35 verbose stack     at Request.emit (events.js:169:7)
35 verbose stack     at IncomingMessage.<anonymous> (C:\Users\Administrator\AppData\Roaming\nvm\v4.8.1\node_modules\npm\node_modules\request\request.js:962:12)
36 verbose statusCode 403
37 verbose pkgid yufytest
38 verbose cwd D:\myselfProject\test\test
39 error Windows_NT 6.1.7601
40 error argv "C:\\Users\\Administrator\\AppData\\Roaming\\nvm\\v4.8.1\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\nvm\\v4.8.1\\node_modules\\npm\\bin\\npm-cli.js" "publish"
41 error node v4.8.1
42 error npm  v3.5.4
43 error code E403
44 error no_perms only allow publish with @capd, @sbrinfo, @soar, @test, @clpd, @ocls, @clfi, @swagger, @demo scope(s): yufytest
45 error If you need help, you may report this error at:
45 error     <https://github.com/npm/npm/issues>
46 verbose exit [ 1, true ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant