Hi,
Did you discuss your changes with the original node author before publishing your own version? We try to encourage enhancing existing nodes rather than creating copies otherwise users are presented with an impossible choice trying to pick which they should use.
Your readme still points at Stephen's repository and doesn't explain how your module is different from his.
Nick
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/be57aed7-9798-490d-8dad-23aa286a7884%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Error: Command failed: npm install --save --save-prefix="~" --production node-red-contrib...@1.0.2 npm ERR! Linux 4.9.28-v7+ npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "--save-prefix=\"~\"" "--production" "node-red-contrib...@1.0.2" npm ERR! node v6.11.1 npm ERR! npm v3.10.10 npm ERR! code ETARGET npm ERR! notarget No compatible version found: node-red-contrib...@1.0.2 npm ERR! notarget Valid install targets: npm ERR! notarget 1.0.0 npm ERR! notarget npm ERR! notarget This is most likely not a problem with npm itself. npm ERR! notarget In most cases you or one of your dependencies are requesting npm ERR! notarget a package version that doesn't exist. npm ERR! Please include the following file with any support request: npm ERR! /root/.node-red/npm-debug.log
According to the link
https://www.npmjs.com/package/node-red-contrib-milight-wrapper the
node is at version 1.0.0 but it appears you are trying to install
1.0.2.
Colin
On 18 July 2017 at 19:24, Sjoerd van Staveren <sjoerd...@gmail.com> wrote:
> Hi Bilal,
>
> I have tried to install your package. I get the following error:
>
> Error: Command failed: npm install --save --save-prefix="~" --production
> node-red-contrib-milight-wra...@1.0.2
> npm ERR! Linux 4.9.28-v7+
> npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save"
> "--save-prefix=\"~\"" "--production"
> "node-red-contrib-milight-wra...@1.0.2"
> npm ERR! node v6.11.1
> npm ERR! npm v3.10.10
> npm ERR! code ETARGET
>
> npm ERR! notarget No compatible version found:
> node-red-contrib-milight-wra...@1.0.2
You're right. Installing directly form the command line doesn't work either:
pi@raspberrypi:~ $ sudo npm i node-red-contrib-milight
npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
+ node-red-contrib-milight@1.0.1
added 3 packages in 5.798s
pi@raspberrypi:~ $
But you appear to have run it in the wrong location. You need to run it from within the .node-red directory.
You also have run it as sudo, why? This can also cause issues and for most nodes it isn't required.
There is also no guarantee that the author will read comments you post here, which is why someone suggested you contact them via github which they are more likely to read.
Thank you guys for your comments. Node-RED is new to me so I make beginners mistakes. I will follow your advice.Sjoerd
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/6kMPCretQvg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/d0040c68-97f9-4d4d-b8b7-625e75db70a4%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/CALiz4o6W0M54XoS4jgNogzOXJjOhxw4JHmmDPP0RAvSE5cHWxQ%40mail.gmail.com.