Read the statement by Michael Teeuw here.
Even a simple node_help.js example does not run.
-
Is it normal for these errors to occur?
/modules/MMM-Testpython/package.json -
@sdetweil said in Even a simple node_help.js example does not run.:
console.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload);
var NodeHelper = require("node_helper"); //var {PythonShell} = require('python-shell'); module.exports = NodeHelper.create({ start: function() {}, socketNotificationReceived: function(notification, payload) { console.log(this.name + " received a socket notification: " + notification + " - Payload: " + payload); }, })
omg… -
@emrhssla sorry, I had a name of “sample” when I did it. I guess the - is not allowed
-
@emrhssla that log is only from the module file. Not node_helper
-
{ "name": "MMMTestpython", "description": "samples", "version": "0.0.1", "dependencies": { "python-shell": "latest" } }Do I have to change it like this and install it again? npm install

-
@emrhssla I don’t understand… mine worked perfectly
package.json
{ "name": "MMM-Testpython", "description": "sample", "keywords": [ " none" ], "version": "0.0.1", "dependencies": { "python-shell": "latest" } }/MagicMirror/modules/MMM-Testpython$ npm install npm WARN MMM-Testpython@0.0.1 No repository field. npm WARN MMM-Testpython@0.0.1 No license field. added 1 package from 1 contributor and audited 1 package in 0.821s found 0 vulnerabilities odroid@odroid:~/MagicMirror/modules/MMM-Testpython$what version of npm do you have
npm -v
-
This post is deleted! -
-
-
Looks like your system doesn’t have python installed.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login


