Sergio
Sergio

Reputation: 41

Powershell files created outside of node_modules

Up until yesterday, whenever I installed a package (e.g. nodemon), they would be added to the node_modules dir. This morning, when I installed a bigger project, the powershell and cmd files were saved outside of that directory, in addition to a file without an extension. It looked like this: dependencies

Why is example, example.cmd and example.ps1 saved outside of node_modules?

Upvotes: 0

Views: 84

Answers (1)

Sergio
Sergio

Reputation: 41

I would like to answer my own question. I had accidentally messed around with the npm prefix. If this happens to you, go to the cmd prompt and type npm set prefix C:/bin and you should be alright :)

Upvotes: 1

Related Questions