Fix release script

This commit is contained in:
Dmitry Shirokov 2017-10-16 13:40:51 +11:00
parent fa24e7778e
commit 99c90fb08d
2 changed files with 48 additions and 1 deletions

48
npm-debug.log Normal file
View File

@ -0,0 +1,48 @@
0 info it worked if it ends with ok
1 verbose cli [ '/Users/m48692/.nvm/versions/node/v7.6.0/bin/node',
1 verbose cli '/Users/m48692/.nvm/versions/node/v7.6.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'release' ]
2 info using npm@4.1.2
3 info using node@v7.6.0
4 verbose run-script [ 'prerelease', 'release', 'postrelease' ]
5 info lifecycle chardet@0.1.0~prerelease: chardet@0.1.0
6 silly lifecycle chardet@0.1.0~prerelease: no script for prerelease, continuing
7 info lifecycle chardet@0.1.0~release: chardet@0.1.0
8 verbose lifecycle chardet@0.1.0~release: unsafe-perm in lifecycle true
9 verbose lifecycle chardet@0.1.0~release: PATH: /Users/m48692/.nvm/versions/node/v7.6.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/m48692/projects/node-chardet/node_modules/.bin:/Users/m48692/.rvm/gems/ruby-2.3.1/bin:/Users/m48692/.rvm/gems/ruby-2.3.1@global/bin:/Users/m48692/.rvm/rubies/ruby-2.3.1/bin:/Users/m48692/.nvm/versions/node/v7.6.0/bin:~/bin:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql91/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Users/m48692/.rvm/bin
10 verbose lifecycle chardet@0.1.0~release: CWD: /Users/m48692/projects/node-chardet
11 silly lifecycle chardet@0.1.0~release: Args: [ '-c', 'scripts/release' ]
12 silly lifecycle chardet@0.1.0~release: Returned: code: 1 signal: null
13 info lifecycle chardet@0.1.0~release: Failed to exec release script
14 verbose stack Error: chardet@0.1.0 release: `scripts/release`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/Users/m48692/.nvm/versions/node/v7.6.0/lib/node_modules/npm/lib/utils/lifecycle.js:279:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:192:7)
14 verbose stack at ChildProcess.<anonymous> (/Users/m48692/.nvm/versions/node/v7.6.0/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:192:7)
14 verbose stack at maybeClose (internal/child_process.js:890:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid chardet@0.1.0
16 verbose cwd /Users/m48692/projects/node-chardet
17 error Darwin 16.7.0
18 error argv "/Users/m48692/.nvm/versions/node/v7.6.0/bin/node" "/Users/m48692/.nvm/versions/node/v7.6.0/bin/npm" "run" "release"
19 error node v7.6.0
20 error npm v4.1.2
21 error code ELIFECYCLE
22 error chardet@0.1.0 release: `scripts/release`
22 error Exit status 1
23 error Failed at the chardet@0.1.0 release script 'scripts/release'.
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 chardet package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error scripts/release
23 error You can get information on how to open an issue for this project with:
23 error npm bugs chardet
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls chardet
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

View File

@ -4,7 +4,6 @@
# http://www.gnu.org/software/bash/manual/bashref.html#The-Set-Builtin
set -e
npm run lint
npm test
if [ -n "$npm_config_major" ]; then SEMVER="major"