简体   繁体   中英

How to install npm modules for nuxt.js on server without internet connection

I'am developing a universal app with nuxt js. Apperently the server does not have a network connection to the internet. Is is possible to build the application with all it's depedencies or manual install the dependecies?

Best regards,

Ian

In general for Node.js, unless native extensions are used, you can just install Node.js on the target server, then copy over your node_modules directory.

If there are native extensions, get your hands on an internet-connected machine with a similar architecture (OS and processor) and Node.js version as your deployment target, run npm i / yarn there and copy over that node_modules directory.

I haven't used Nuxt.js, though, so YMMV there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM