You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: