npm -h quick help on
npm -l display full usage info
npm faq commonly asked questions
npm help search for help on
npm help npm involved overview
Specify configs in the ini-formatted file:
C:\Users\Пётр\.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config
У меня другая бяда:
Как бы не конфигурировал таск он всегда выдает такое:
Z:\home\task10.zz>gulp vendors
[15:11:00] Using gulpfile Z:\home\task10.zz\gulpfile.js
[15:11:00] Starting 'vendors'...
[15:11:00] 'vendors' errored after 854 ?s
[15:11:00] Error: Invalid glob argument:
at Gulp.src (Z:\home\task10.zz\node_modules\gulp\node_modules\vinyl-fs\lib\src\index.js:19:11)
at Gulp. (Z:\home\task10.zz\gulpfile.js:7:17)
at module.exports (Z:\home\task10.zz\node_modules\gulp\node_modules\orchestrator\lib\runTask.js:34:7)
at Gulp.Orchestrator._runTask (Z:\home\task10.zz\node_modules\gulp\node_modules\orchestrator\index.js:273:3)
at Gulp.Orchestrator._runStep (Z:\home\task10.zz\node_modules\gulp\node_modules\orchestrator\index.js:214:10)
at Gulp.Orchestrator.start (Z:\home\task10.zz\node_modules\gulp\node_modules\orchestrator\index.js:134:8)
at C:\Users\Пётр\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js:121:20
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
================
Сам гальп фаил выглядеть так:
var gulp = require('gulp');
var filter = require('gulp-filter');
var concat = require('gulp-concat');
var mainBowerFiles = require('main-bower-files');
gulp.task('vendors', function () {
return gulp.src(mainBowerFiles())
.pipe(filter('**/*.js'))
.pipe(concat('vendor.js'))
.pipe(gulp.dest('dist/scripts'));
});
bower_components
и
bower.json
лежат в этой же папке, что и gulpfile.js
Другие таски выполняются без ошибок.
Может я что-то не так делаю....
Usage: npm
where is one of:
add-user, adduser, apihelp, author, bin, bugs, c, cache,
completion, config, ddp, dedupe, deprecate, docs, edit,
explore, faq, find, find-dupes, get, help, help-search,
home, i, info, init, install, isntall, 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, submodule, t, tag, test, tst, un,
uninstall, unlink, unpublish, unstar, up, update, v,
version, view, whoami
npm -h quick help on
npm -l display full usage info
npm faq commonly asked questions
npm help search for help on
npm help npm involved overview
Specify configs in the ini-formatted file:
C:\Users\Пётр\.npmrc
or on the command line via: npm --key value
Config info can be viewed via: npm help config
npm@1.4.23 C:\Program Files\nodejs\node_modules\npm