-
Notifications
You must be signed in to change notification settings - Fork 0
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 faq, npm help broken: TypeError: Cannot read property 'cooked' of undefined #8
Comments
This is actually from the missing argument parsing, faq and help do
and it is an upstream npm bug, not browserify-specific (but admittedly an obscure edge case):
|
…-long', 'foo') Lots of issues with it GH-8
Added a workaround but the real fix is a command-line interface, going through npm's argument parsing cli. npm_cli()
undefined
bundle.js:76 npm command require /node_modules/npm/lib/help.js
bundle.js:75213
Usage: npm <command>
where <command> is one of:
access, add-user, adduser, apihelp, author, bin, bugs, c,
cache, completion, config, ddp, dedupe, deprecate, dist-tag,
dist-tags, docs, edit, explore, faq, find, find-dupes, get,
help, help-search, home, i, info, init, install, issues, la,
link, list, ll, ln, login, ls, outdated, owner, pack,
prefix, prune, publish, r, rb, rebuild, remove, repo,
restart, rm, root, run-script, s, se, search, set, show,
shrinkwrap, star, stars, start, stop, t, tag, test, tst, un,
uninstall, unlink, unpublish, unstar, up, update, v,
verison, version, view, whoami
npm <cmd> -h quick help on <cmd>
npm -l display full usage info
npm faq commonly asked questions
npm help <term> search for help on <term>
npm help npm involved overview
Specify configs in the ini-formatted file:
/tmp/npm-undefined/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
npm@undefined /node_modules/npm but there are a bunch of issues. For one, it only works once because after the http://nodejs.org/api/modules.html#modules_caching
but it can be used in webnpm to call the command-line, by setting
|
something with raw vs cooked terminals? ref GH-6
The text was updated successfully, but these errors were encountered: