Platformio-atom-ide-terminal: NPM can't see any of my global modules while using this terminal

Created on 21 Jun 2016  路  8Comments  路  Source: platformio/platformio-atom-ide-terminal

Using git bash for this package, running npm list -g gives me an empty list:

Here it is again using PowerShell:

Outside of Atom it works fine (notice how it's looking in the same exact directory):

This might be related to #15 since I did notice the NODE_ENV variable being overwritten by Atom, though I have no idea if that is the problem.

But for the record, running just npm list works fine for seeing local node packages.

bug

Most helpful comment

you can run $env:NODE_ENV="development" in the terminal if using windows Powershell
or set NODE_ENV=development in windows command prompt
or insert one of those commands (depending on your shell) into the "auto run command" in settings as quick fix.
This same issue occurs with other terminal packages for Atom. I think it might be something in Atom.

All 8 comments

I'm having the same issue as well, when I do a npm install it immediately returns to the prompt and does nothing. If I open a PowerShell window as administrator and change to the same directory and do a npm install everything works fine.

+1

+1

Yup, same here. This is rendering the whole terminal useless for me. Even npm i fails.

On Windows at least, NODE_PATH is set to the Atom path. That is what messes things up.

+1

Same here - NODE_ENV is also set to 'production' in shell instances on Windows

you can run $env:NODE_ENV="development" in the terminal if using windows Powershell
or set NODE_ENV=development in windows command prompt
or insert one of those commands (depending on your shell) into the "auto run command" in settings as quick fix.
This same issue occurs with other terminal packages for Atom. I think it might be something in Atom.

fixed with 2.9.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timmay7 picture timmay7  路  58Comments

upeshjindal picture upeshjindal  路  23Comments

tjapro picture tjapro  路  21Comments

tiferrei picture tiferrei  路  33Comments

sagiegurari picture sagiegurari  路  20Comments