M
M
McBernar2019-09-27 03:49:41
Node.js
McBernar, 2019-09-27 03:49:41

How to work with node_modules on mac and windows at the same time?

Hello.
Listen, is it really possible to work on the same files in a project, but under different platforms? I always worked on a poppy, but I bought myself a PC and I want to set up the environment here too. And, of course, the node complained that some of the modules in the project were set up in a different environment.
Do I understand correctly that only git with sources and no shared files from node_modules between platforms?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Borisovich, 2019-09-27
@McBernar

What does git have to do with it?) Initiate the project on the PC npm install. The node will download the sources for the current platform.
In any case, you will work at your own peril, because it is best to do the project where it will spin in the production. On the other hand, the node is quite a cross-platform thing, and it has popular modules with a good cross-platform, but no one except your many years of experience will answer for this. Go ahead and write back here in a year with the posted package.json

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question