Npm - stopped working unexpectedly


(T S I) #1

Hello !
OS: Linux Yocto V2.2.0. (on IoT2040)
Every command I try to run gives me this error: (ex. npm -v or npm cache clean)

I had the NODE-RED environment running for 6 months and now without doing anything the npm module is no longer working ( node-red was started using pm2 package)


(Lars Willighagen) #2

That looks like something inserted malicious code into your copy of npm in some way. Have you tried a complete reinstall?


(T S I) #3

I have not tried this yet because I have many packages that depend on npm and it takes me a long time to reinstall all of them. But I think this will be the only solution after all.


(system) #4

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