Atom fails to install npm packages


Outside atom I can easily install npm packages (and create for example vue webpack projects without any problems):
In atom (with platformio-ide-terminal)

With the normal windows powershell everything works great

When i start the project inside atom (via: npm run dev) This error occurs the project has build errors

But starting it through the powershell works just fine.
As well if I install npm packages inside atom, it deletes every package except the package that needs to be installed

Does anybody have a solution for it.


I fixed the problem. Atom automatically sets the Node ENV variable to production. With setting in the core settings in platformio-ide-terminal everything works perfectly!