Reputation: 57
I've followed this tutorial for Rabbitmq in Javascript. These are the codes: https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/javascript-nodejs/src/send.js
https://github.com/rabbitmq/rabbitmq-tutorials/blob/master/javascript-nodejs/src/receive.js
But, when I try to run them with ./send.js and/or ./recv.js it gives me "Permission denied" error.
I look for some solutions but I don't understand, or I find something about IE (that it's not my case) - plus I don't think the problem is the browser (?) If it's so... why? :/
Upvotes: 1
Views: 7830
Reputation: 6168
You're trying to run Javascript from the command line. This answer details how to do it with Node, with instructions from Command Line Javascript. Here's a quick rundown:
console.log('Hello, world');
node hello.js
Upvotes: 0
Reputation: 569
Well, i think you are wrong with few things... you are trying to run it without node or an interpreter.
node ./file.js
var myModule = require('./myModule.js);
and use its functions.<script src="/file.js"></script>
and use its functions.I don't know that software and how it works, but that are the essentials usages of common javascript files.
Upvotes: 3