Unable to test a custom node locally (npm link)

Hi,

Environment:
-Node 8.12.0
-npm 6.4.1
Win 10

I created a custom node following the template from the "Creating your first node" page.

It can be installed just fine, but I'm also trying to use the "npm link" command as decribed here: Packaging : Node-RED in the section "Testing a node module locally", this is the command I'm using:

npm link <path_to_node_folder>

It fails with the following error:

npm ERR! path C:\node-v8.12.0-win-x64\node_modules\TestNode\package.json
npm ERR! code ELOOP
npm ERR! errno -4067
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open 'C:\node-v8.12.0-win-x64\node_modules\TestNode\package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User1\AppData\Roaming\npm-cache\_logs\2019-01-30T18_01_16_133Z-debug.log

This is the full log: http://oneclickpaste.com/1374/

Has anyone seen this problem before?

Although this is not an answer to your question, I recommend not using npm link. Just use npm install FolderName, this will also create a symlink to your local node and does not require admin rights like npm link.
Of course FolderName should include the path to the package.

1 Like

Yes, it includes the path to the package