Coder Social home page Coder Social logo

node-run-cmd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-run-cmd's Issues

Hi bro, i have some problem about run `npx` command ?

Hi, @c-h-

Error with npx run ?

my code:

var nrc = require('node-run-cmd');

var dataCallback = function(data) {
  console.log(data);
};

nrc.run('npx nodemon index.js', { onData: dataCallback });

please let me know about solution ?
Thanks bro

codes: 2 meaning

I am running the below set of code and my console prints
codes: 2
what does that mean?

nrc.run(sox public/audioUploads/${filename} -b 16 -c 1 public/wavConverted/${filename} rate 8000)
.then(function(codes){
// useCode(codes[0]);
console.log('codes :' + codes);
// console.log(useCode(codes[0]));

A little help ?

hi - I'm trying to run the following command, but running into issues.

nrc.run ('jq -c ".[]" file.json > file_clean.json');

Any ideas ? I assume it's to do with the ".[]" which in need as part of the jq filter...Its' actually part of a much larger command i'd like to run which is shown below...

nrc.run (curl 'https://someapi/resource/some_file.json' | jq -c ".[]" > /home/dev/some_file.json);

Required version of Node not specified

I had issue executing likely due to the spread operator on line 109 of index.js which might not be supported in the version of Node I had installed at the time (4.3.0) because when I upgraded to the latest stable version (6.2.1), I no longer got Unexpected token ... . What is the oldest version of Node required?

Error changing the LAN Proxy Settings on Windows 7

Im trying to change the LAN Proxy Settings on Windows 7 through CMD from within NODE but am getting the following error.

Ive tried a few different libraries as well as use child process to run it but no luck. It works fine when I just run the command in CMD, but when running through node, I havent had any luck..... anyone have any ideas?

command failed reg add /? for usage - invalid key name

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d 192.168.1.1:8080 /f

*note proxy is fake in this example

Is this running the CMD in administrator mode?

I am trying to run the following commandline
image

Then I got error saying this:
image

However, this command can run very well on the Windows CMD tools.
I have searched the internet, found some people saying this maybe caused by the lack of administrator privilege.

I also found a NPM module(https://www.npmjs.com/package/runas) that can manually set whether to run the command in admin mode. But I like this project much more, I hope I can make the same setting in this project.

Please help.
Thanks.

Feature request: Pass the command being run & working directory to events

Say I have multiple commands.

Say some errors are coming up. Say the errors aren't very descriptive.

I'd like to at least know which command is failing, or is currently running. Since I might run the same command in multiple directories, I'd like the whole object passed so it can help me debug my problems.

Is this doable?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.