This commit is contained in:
elex
2020-04-20 12:57:38 +09:00
parent b4c46884e6
commit 2d3888041f
5 changed files with 55 additions and 7 deletions

View File

@@ -1,4 +0,0 @@
const L = require('./loggings');
L.i("kkk");
L.i(L);

45
npm-debug.log Normal file
View File

@@ -0,0 +1,45 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'publish' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
4 verbose run-script [ 'prepublish', 'publish', 'postpublish' ]
5 info lifecycle @elex/loggings@0.0.5~prepublish: @elex/loggings@0.0.5
6 silly lifecycle @elex/loggings@0.0.5~prepublish: no script for prepublish, continuing
7 info lifecycle @elex/loggings@0.0.5~publish: @elex/loggings@0.0.5
8 verbose lifecycle @elex/loggings@0.0.5~publish: unsafe-perm in lifecycle true
9 verbose lifecycle @elex/loggings@0.0.5~publish: PATH: /usr/share/npm/bin/node-gyp-bin:/media/elex/UltraFit/Workspace/js-projects/loggings/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
10 verbose lifecycle @elex/loggings@0.0.5~publish: CWD: /media/elex/UltraFit/Workspace/js-projects/loggings
11 silly lifecycle @elex/loggings@0.0.5~publish: Args: [ '-c', 'npm publish' ]
12 silly lifecycle @elex/loggings@0.0.5~publish: Returned: code: 1 signal: null
13 info lifecycle @elex/loggings@0.0.5~publish: Failed to exec publish script
14 verbose stack Error: @elex/loggings@0.0.5 publish: `npm publish`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at EventEmitter.emit (events.js:214:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:126:13)
14 verbose stack at ChildProcess.emit (events.js:214:7)
14 verbose stack at maybeClose (internal/child_process.js:925:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
15 verbose pkgid @elex/loggings@0.0.5
16 verbose cwd /media/elex/UltraFit/Workspace/js-projects/loggings
17 error Linux 4.15.0-96-generic
18 error argv "/usr/bin/node" "/usr/bin/npm" "run" "publish"
19 error node v8.10.0
20 error npm v3.5.2
21 error code ELIFECYCLE
22 error @elex/loggings@0.0.5 publish: `npm publish`
22 error Exit status 1
23 error Failed at the @elex/loggings@0.0.5 publish script 'npm publish'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the @elex/loggings package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error npm publish
23 error You can get information on how to open an issue for this project with:
23 error npm bugs @elex/loggings
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls @elex/loggings
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

View File

@@ -1,10 +1,12 @@
{ {
"name": "@elex/loggings", "name": "@elex/loggings",
"version": "0.0.2", "version": "0.0.5",
"description": "Loggings", "description": "Loggings",
"main": "loggings.js", "main": "./src/loggings.js",
"module": "./src/loggings.js",
"scripts": { "scripts": {
"test": "node loggings-test.js" "test": "node ./src/loggings-test.js",
"publish": "npm publish"
}, },
"keywords": [ "keywords": [
"loggings" "loggings"

5
src/loggings-test.js Normal file
View File

@@ -0,0 +1,5 @@
const L = require('./loggings');
L.i("Hello");
L.level = 4;
L.i("Hello 2");