I am going to create my first node using node red docs

Creating your first node
I am going to create my first node using node red docs and follow all the steps here is link:Creating your first node : Node-RED but when I am going to run the command as mention in docs ,I am getting this below error

npm install test\.node_red
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Soumen Nayak\test\.node_red/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Soumen Nayak\test\.node_red\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent   

Please need help


Never created a node myself.
My first intuitive is that the error is because you have a space in the path, in this case in your user name.
Include your path with quotations where required.
Something like this "C:\Users\Soumen Nayak\test.node_red/package.json"

1 Like

@bubainayak1 the path you pass to npm install must either be a relative path starting with ./ or an absolute path c:\Users....

The documentation tells you:

Create a directory where you will develop your code. Within that directory, create the following files: [...]

Are you sure you created your custom nodes files in this (potentially hidden?) directory?

In addition to Nicks statement: You should (or even need to) run npm install ... from your node-red userdir.

thanks , it worked

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.