When I install any npm packages and I restart RMMZ, the dependencies are deleted from package.json

Bandito

Veteran
Veteran
Joined
Aug 23, 2013
Messages
66
Reaction score
27
First Language
spanish
Primarily Uses
Ok so my issue is that when I install a NPM package via the terminal (Using NPM and node) the dependencies section gets deleted after I restart RMMZ. After downloading the package and installing, everything is working fine and dandy, but I just noticed that in the package.json, the dependencies are not there. What I noticed is, that when RMMZ is closed and restarted, it deletes the dependencies section of the package.json and the file goes back as it was by default.

Steps to replicate (This was tested on a Mac but I can verify if it happens on Windows if needed)
1. Download and install NodeJS.
2. Start terminal and install any package via
Code:
npm i <package>
3. It downloads everything as it should (creates a package-json.lock, create a node_modules adding the necessary files and writes to the dependency section in the package.json file, the one that is created by default)
4. Close RM and start it again.
5. The dependency section on the package.json is not there anymore, it goes back to how it was by default. The package-json.lock and node_modules is still there.


I am not sure if this was a pattern that was made that way on purpose or not, but it's a pain to keep track of packages for a project this way.


If a better explanation is needed, I can try to write this post again. English is not my native language, and I just wrote what came out of my head.
 

Bandito

Veteran
Veteran
Joined
Aug 23, 2013
Messages
66
Reaction score
27
First Language
spanish
Primarily Uses
Bump due to needing answer to this issue.
 

Latest Threads

Latest Posts

Latest Profile Posts

Folks, if anyone sends you a message inviting you to add their API to your game, please report them. We don't want people spamming our members asking them to add stuff to their games for their own (or others') benefit.
I'm listening to iiluminaughtii talking about the secrets behind shady businesses and scams. Meanwhile I'm writing a fanfic about Sephiroth from FF7, one specifically for my stepmom. I'll get to give it to her, too, because my boss said I could take the holidays off! Dec. 22-27 I will be in Orlando, and maybe Fort Myers too, visiting my dad and stepmom!
Of course, I bought a handful of games on the Steam Black Friday sale. Will I try them? Will I complete any? Who knows...
I don't really have any neat updates today about how I screwed up programming... But if you want to observe the intensenes of me programming, then you can check out my stream :)
New Weapons.gif
No more spam from me today, I promise! Just wanted to upload this, people have been giving me feedback that my weapon sprites (which were RTP) clashed badly with my battlers for ages, so today I finally took the plunge and updated them! Really happy with how they came out :D :D

Forum statistics

Threads
117,009
Messages
1,103,786
Members
152,904
Latest member
gumi16
Top