安装基于Node.js的服务时文件夹路径太长的问题 [英] Folder path too long issue in installing Node.js based service

查看:189
本文介绍了安装基于Node.js的服务时文件夹路径太长的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在成功安装安装和服务后,下载联机NPM资源的工作正常。

Downloading online NPM resources works fine while installation and service is installed successfully.

但是当我们使用安装程序打包Node_modules文件夹时...在复制和解压缩脱机下载的node_modules文件时,它会抛出文件夹路径过长的错误。现在问题来了,当客户端计算机没有互联网并且我们希望使用安装程序打包它时。

But when we pack Node_modules folder with installer... It throws folder path too long error while copying and unzipping offline downloaded node_modules files. Now Issue comes when client machine does not have internet and we wish to package it with installer.

我们将如何做。

文件路径太长/文件夹路径太长

推荐答案

另一种方法解决这个问题的方法是先将其安装到您可以摆脱的最短路径上:)这意味着提取时不接受默认的软件包路径,即

Another way you can get around this is to just install it firstly to the shortest path you can get away with :) This means not accepting the default package path when extracting i.e.

C:\users\myuser\node-v8.11.2-win-x64

但是例如:

C:\users\myuser\node

当我遇到同一问题时,这对我有用。

This worked for me when I came across the same issue.

这篇关于安装基于Node.js的服务时文件夹路径太长的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆