I would like to use npm packages like moment, lodash, axios etc. in cocos creator.
Is it possible to use them via npm i --package-name
?
Are there any restrictions to use them in cocos? I couldn't find any information in cocos docs, if there is any information that you know how cocos approach to npm packages please share a link or give information about their vision.
You can open cocos-creator project like any other project in any code editor from where you can manage your dependencies.
From what I understand you just need to do the following:
npm init
in root creator-project directory.require
on any cocos-creator script.