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

Initial settings #20

Open
alemalta opened this issue Feb 3, 2016 · 0 comments
Open

Initial settings #20

alemalta opened this issue Feb 3, 2016 · 0 comments

Comments

@alemalta
Copy link

alemalta commented Feb 3, 2016

Hi,

Now I have Perforce visual client and it works well. When I run this GULP task

var p4 = require('node-perforce');
var gulp = require('gulp');
var gulpP4 = require('gulp-p4');

gulp.task('default', function() {
p4.changelist.create({description: 'hello world'}, function (err, changelist) {
if (err) return console.log(err);
console.log('changelist:', changelist);
});
});

I have this error in console
$ gulp
[17:52:13] Using gulpfile c:\Dev\perforce\gulpfile.js
[17:52:13] Starting 'default'...
[17:52:13] Finished 'default' after 6.45 ms
{ [Error: Command failed: C:\Windows\system32\cmd.exe /s /c "p4.exe change -i "
Client 'IT04' unknown - use 'client' command to create it.
]
killed: false,
code: 1,
signal: null,
cmd: 'C:\Windows\system32\cmd.exe /s /c "p4.exe change -i "' }

I need to write credentials somewhere and most probably do some settings as well. I am new with communication between Perforce and Node.js. Can you please give a bit of links/references/ideas for initial settings before using your plugin. I mean how to setup Perforce to be able run your functionality from GULP tasks. What I need to do first to be able to use your code examples from
https://www.npmjs.com/package/node-perforce

thanks a lot in advance,
Alex

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

1 participant