离线环境安装node_modules包
联网的电脑
1.nmp install安装node_module
2.查看npm-cache
npm config get cache
3.将1 2两个包放到离线电脑的相应目录覆盖
离线的电脑
1.npm link (我运行时候存在错误,但运行npm run dev却成功)
2.npm run dev
参考:
1.https://www.jianshu.com/p/dc282bd720ef
2.https://blog.csdn.net/fakerplus/article/details/105723355
3.https://blog.csdn.net/fay462298322/article/details/53432691?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.control&dist_request_id=1329188.8887.16178811516803549&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.control