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

npm v3 support #35

Open
fanatid opened this issue Nov 27, 2015 · 1 comment
Open

npm v3 support #35

fanatid opened this issue Nov 27, 2015 · 1 comment

Comments

@fanatid
Copy link

fanatid commented Nov 27, 2015

npm@3 install modules maximally flat and browserify can be installed on same level as bitcore-build and path to binary should be (for npm@3)

./node_modules/.bin/browserify

instead

./node_modules/bitcore-build/node_modules/.bin/browserify

full error message:

$ gulp test:browser
[16:12:47] Using gulpfile ~/work/bitcore-lib/gulpfile.js
[16:12:47] Starting 'browser:uncompressed'...
[16:12:47] Starting 'browser:maketests'...
/bin/sh: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory
[16:12:47] 'browser:uncompressed' errored after 39 ms
[16:12:47] Error in plugin 'gulp-shell'
Message:
    Command failed: /bin/sh -c ./node_modules/bitcore-build/node_modules/.bin/browserify --require ./index.js:bitcore-lib -o bitcore-lib.js
/bin/sh: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

Details:
    killed: false
    code: 127
    signal: null
    cmd: /bin/sh -c ./node_modules/bitcore-build/node_modules/.bin/browserify --require ./index.js:bitcore-lib -o bitcore-lib.js
    stdout: 
    stderr: /bin/sh: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

xargs: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory
[16:12:47] 'browser:maketests' errored after 26 ms
[16:12:47] Error in plugin 'gulp-shell'
Message:
    Command failed: /bin/sh -c find test/ -type f -name "*.js" | xargs ./node_modules/bitcore-build/node_modules/.bin/browserify -t brfs -o tests.js
xargs: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory

Details:
    killed: false
    code: 127
    signal: null
    cmd: /bin/sh -c find test/ -type f -name "*.js" | xargs ./node_modules/bitcore-build/node_modules/.bin/browserify -t brfs -o tests.js
    stdout: 
    stderr: xargs: ./node_modules/bitcore-build/node_modules/.bin/browserify: No such file or directory
@kleetus
Copy link
Contributor

kleetus commented Jul 20, 2016

I just ran into something similar with npm v3

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

2 participants