CN112596753A - Dependency package installation method and device, electronic equipment and computer readable medium - Google Patents

Dependency package installation method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN112596753A
CN112596753A CN202011603014.4A CN202011603014A CN112596753A CN 112596753 A CN112596753 A CN 112596753A CN 202011603014 A CN202011603014 A CN 202011603014A CN 112596753 A CN112596753 A CN 112596753A
Authority
CN
China
Prior art keywords
development environment
dependency package
package
dependency
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011603014.4A
Other languages
Chinese (zh)
Inventor
丁延强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Ruijia Information Technology Co ltd
Original Assignee
Shanghai Ruijia Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Ruijia Information Technology Co ltd filed Critical Shanghai Ruijia Information Technology Co ltd
Priority to CN202011603014.4A priority Critical patent/CN112596753A/en
Publication of CN112596753A publication Critical patent/CN112596753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting

Abstract

Embodiments of the present disclosure disclose a dependency package installation method, apparatus, electronic device, and computer readable medium. One embodiment of the method comprises: acquiring a second configuration parameter of a second development environment, wherein the second development environment is a development environment switched from a first development environment, and a basic dependency package corresponding to a target application program is installed in the first development environment; acquiring a second additional dependency package adapted to a second development environment from an additional dependency package group according to a second configuration parameter, wherein the additional dependency package group is a set of different dependency packages adapted to the target application program in each development environment, and the base dependency package is a dependency package adapted to the target application program in any development environment; a second additional dependency package is installed in the second development environment based on the base dependency package installed in the first development environment. This embodiment avoids the installation of all dependent packages in full, reducing installation time.

Description

Dependency package installation method and device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a method and an apparatus for dependent package installation, an electronic device, and a computer-readable medium.
Background
In the process of utilizing a development platform to assist local development, the front end needs to integrate more functions, and generally needs to install all the dependency packages in a full amount. However, installing all the dependent packages in full has the following technical problems:
firstly, installing all the dependency packages in a full amount, which results in overlong installation time;
second, specific dependency packages cannot be installed as needed for certain special functions.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a dependency package installation method, apparatus, electronic device, and computer readable medium to address one or more of the technical problems noted in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method of relying on package installation, the method comprising: responding to a request for installing a dependency package of a target application program in a second development environment, and acquiring second configuration parameters of the second development environment, wherein the second development environment is a development environment switched from a first development environment in which a basic dependency package corresponding to the target application program is installed; acquiring a second additional dependency package adapted to the second development environment from an additional dependency package group according to the second configuration parameter, where the additional dependency package group is a set of different dependency packages adapted to the target application program in each development environment, and the base dependency package is a dependency package adapted to any development environment for the target application program; installing a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
In a second aspect, some embodiments of the present disclosure provide a dependent package installation apparatus comprising: a first obtaining unit, configured to obtain a second configuration parameter of a second development environment in response to a request for installing a dependency package of a target application in the second development environment, where the second development environment is a development environment switched from a first development environment in which a base dependency package corresponding to the target application is already installed; a second obtaining unit configured to obtain, according to the second configuration parameter, a second additional dependency package adapted to the second development environment from an additional dependency package group, where the additional dependency package group is a set of different dependency packages adapted to the target application in each development environment, and the base dependency package is a dependency package adapted to any development environment for the target application; an installation unit configured to install a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the dependency package installation method of some embodiments of the present disclosure, it is avoided to install all dependency packages in full, reducing installation time. Specifically, the reason for the too long installation time of the dependent package is that: all dependent packages are installed in full. Based on this, the dependent package installation method of some embodiments of the present disclosure first obtains the second configuration parameters of the second development environment in response to a request for installing the dependent package of the target application in the second development environment. Therefore, reference can be provided for obtaining the dependency package adapted to the target application program. And then, acquiring a second additional dependency package adapted to the second development environment from the additional dependency package group according to the second configuration parameter. Therefore, the additional dependency package adaptive to the target application program can be selected from the additional dependency package group, and the problem that a specific dependency package cannot be installed according to needs for certain special functions is solved. Finally, a second additional dependency package is installed in the second development environment based on the base dependency package installed in the first development environment. Therefore, all the dependent packages are prevented from being installed in a full amount, and the installation time is reduced.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a dependent package installation method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a dependent package installation method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a dependent package installation method according to the present disclosure;
FIG. 4 is a flow diagram of still further embodiments of a dependent package installation method according to the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of a relying package installation device according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a schematic diagram of one application scenario of a dependent package installation method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may obtain the second configuration parameters 102 of the second development environment in response to a request for installing the dependency package of the target application in the second development environment. The second development environment is a development environment switched from a first development environment, and the first development environment is provided with a basic dependency package corresponding to the target application program. Then, the computing device 101 may obtain a second additional dependency package 104 adapted to the second development environment from the additional dependency package group 103 according to the second configuration parameter 102. The additional dependency package group 103 is a collection of different dependency packages adapted to the target application program in each development environment, and the base dependency package is a dependency package adapted to the target application program in any development environment. Finally, the computing device 101 can install a second additional dependency package 104 in the second development environment based on the base dependency package 105 installed in the first development environment.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to FIG. 2, a flow 200 of some embodiments of a dependent package installation method according to the present disclosure is shown. The method for installing the dependency package comprises the following steps:
step 201, responding to a request for installing a dependency package of a target application program in a second development environment, and acquiring second configuration parameters of the second development environment.
In some embodiments, an executing entity (e.g., the computing device 101 shown in fig. 1) of the dependent package installation method may acquire the second configuration parameters of the second development environment from the device terminal through a wired connection or a wireless connection in response to a request for installing the dependent package of the target application in the second development environment. The second development environment may be a development environment switched from a first development environment in which the base dependency package corresponding to the target application is installed. Here, the second development environment may be a development platform supporting JavaScript to run on a server. For example, node. Here, the second configuration parameter may refer to configuration information of the second development environment. For example, version information: a version number. Here, the target application may be an application to be developed. Here, the dependency package may refer to a package or a plug-in.
Step 202, obtaining a second additional dependency package adapted to the second development environment from the additional dependency package group according to the second configuration parameter.
In some embodiments, the execution body may first determine configuration parameters for each additional dependent packet in the additional dependent packet group. Then, an additional dependency package having the same configuration parameters as the second configuration parameters of the second development environment may be obtained from the additional dependency package group. The additional dependency package group may be a set of different dependency packages adapted to the target application program in each development environment, and the base dependency package may be a dependency package adapted to the target application program in any development environment.
Step 203, installing a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
In some embodiments, first, the execution principal may switch a first development environment in which the base dependency package corresponding to the target application is installed to a second development environment. A second additional dependency package may then be installed in the second development environment described above. Here, the second development environment may be a exact development environment built in a node.
The above embodiments of the present disclosure have the following advantages: by the dependency package installation method of some embodiments of the present disclosure, it is avoided to install all dependency packages in full, reducing installation time. Specifically, the reason for the too long installation time of the dependent package is that: all dependent packages are installed in full. Based on this, the dependent package installation method of some embodiments of the present disclosure first obtains the second configuration parameters of the second development environment in response to a request for installing the dependent package of the target application in the second development environment. Therefore, reference can be provided for obtaining the dependency package adapted to the target application program. And then, acquiring a second additional dependency package adapted to the second development environment from the additional dependency package group according to the second configuration parameter. Therefore, the additional dependency package adaptive to the target application program can be selected from the additional dependency package group, and the problem that a specific dependency package cannot be installed according to needs for certain special functions is solved. Finally, a second additional dependency package is installed in the second development environment based on the base dependency package installed in the first development environment. Therefore, all the dependent packages are prevented from being installed in a full amount, and the installation time is reduced.
With further reference to FIG. 3, a flow diagram of further embodiments of a dependent package installation method according to the present disclosure is shown. The method for installing the dependency package comprises the following steps:
step 301, in response to a request for installing a dependency package of a target application in a second development environment, obtaining second configuration parameters of the second development environment.
In some embodiments, an executing entity (e.g., the computing device 101 shown in fig. 1) of the dependent package installation method may acquire the second configuration parameters of the second development environment from the device terminal through a wired connection or a wireless connection in response to a request for installing the dependent package of the target application in the second development environment. The second development environment may be a development environment switched from a first development environment in which the base dependency package corresponding to the target application is installed. Here, the second development environment may be a development platform supporting JavaScript to run on a server. For example, node. Here, the second configuration parameter may refer to configuration information of the second development environment. For example, version information: a version number. Here, the target application may be an application to be developed. Here, the dependency package may refer to a package or a plug-in.
Step 302, obtaining a second additional dependency package adapted to the second development environment from the additional dependency package group according to the second configuration parameter.
In some embodiments, the execution body may first determine configuration parameters for each additional dependent packet in the additional dependent packet group. Then, an additional dependency package having the same configuration parameters as the second configuration parameters of the second development environment may be obtained from the additional dependency package group. The additional dependency package group may be a set of different dependency packages adapted to the target application program in each development environment, and the base dependency package may be a dependency package adapted to the target application program in any development environment.
Step 303, in response to receiving a request for installing a dependency package of the target application in a first development environment, obtaining a first configuration parameter of the first development environment, and obtaining a first additional dependency package adapted to the first development environment from the additional dependency package group according to the first configuration parameter.
In some embodiments, first, the execution principal may obtain the first configuration parameters of the first development environment from the device terminal through a wired connection or a wireless connection in response to receiving a request for installing the dependency package of the target application in the first development environment. Here, the first configuration parameter may refer to configuration information of the first development environment. For example, version information: a version number. Configuration parameters for each additional dependent packet in the additional group of dependent packets may then be determined. Finally, a first additional dependency package having the same configuration parameters as the first configuration parameters of the second development environment may be obtained from the additional dependency package group.
Step 304, obtaining the basic dependency package corresponding to the target application program.
In some embodiments, the execution main body may obtain the basic dependency package corresponding to the target application from a device terminal through a wired connection or a wireless connection.
Step 305, installing the first additional dependency package and the base dependency package in the first development environment.
In some embodiments, the execution agent may invoke a shell script using a node.
And step 306, installing a second additional dependency package in the second development environment based on the basic dependency package installed in the first development environment.
In some embodiments, first, the execution principal may switch a first development environment in which the base dependency package corresponding to the target application is installed to a second development environment. A second additional dependency package may then be installed in the second development environment described above. Here, the second development environment may be a exact development environment built on a node.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the flow 300 of the dependency package installation method in some embodiments corresponding to fig. 3 embodies the installation of the first additional dependency package and the base dependency package in the first development environment. Thus, environmental support is provided for subsequent installation of a second additional dependency package in a second development environment.
With further reference to FIG. 4, a flow diagram of still further embodiments of a dependent package installation method in accordance with the present disclosure is shown. The method for installing the dependency package comprises the following steps:
step 401, in response to a request for installing a dependency package of a target application in a second development environment, obtaining a second configuration parameter of the second development environment.
In some embodiments, the specific implementation manner and technical effects of step 401 may refer to step 201 in those embodiments corresponding to fig. 2, and are not described herein again.
Step 402, obtaining a dependency package set of each development environment correspondingly installed by the target application program in advance, in the dependency package set, taking a dependency package adapted to any development environment by the target application program as the basic dependency package, taking different dependency packages respectively adapted to different development environments by the target application program as additional dependency packages, and adding each additional dependency package to an additional dependency package group.
In some embodiments, first, an execution subject (e.g., the computing device 101 shown in fig. 1) of the dependent package installation method may obtain, from the device terminal, a set of dependent packages for each development environment in which the target application is installed correspondingly, through a wired connection or a wireless connection. Then, in the dependency package set, the execution subject may use a dependency package adapted by the target application program in any development environment as the base dependency package, use different dependency packages adapted by the target application program in different development environments as additional dependency packages, and add each additional dependency package to an additional dependency package group. Here, adapting may mean adapting. Here, the development environment may refer to a first development environment or a second development environment.
And 403, recording the configuration parameters of each development environment correspondingly installed by the target application program and the additional dependency packages matched with each configuration parameter.
In some embodiments, the execution agent may record configuration parameters of each development environment corresponding to the installation of the target application, and additional dependency packages matching each configuration parameter.
And step 404, obtaining a second additional dependency package adapted to the second development environment from the additional dependency package group according to the second configuration parameter.
Step 405, installing a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
In some embodiments, the specific implementation manner and technical effects of steps 404 and 405 may refer to steps 202 and 203 in those embodiments corresponding to fig. 2, which are not described herein again.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the flow 400 of the dependent package installation method in some embodiments corresponding to fig. 4 embodies the configuration parameters of each development environment corresponding to the installation of the target application program, and the records of the additional dependent packages matched with each configuration parameter. Therefore, whether the additional dependency packages corresponding to the target application programs are installed successfully or not can be determined according to the records. Furthermore, the dependent packages which are not installed successfully can be installed again according to the records so as to reduce the error rate of the installation process.
With further reference to fig. 5, as an implementation of the methods illustrated in the above figures, the present disclosure provides some embodiments of a bag-dependent installation apparatus, which correspond to those method embodiments illustrated in fig. 2, and which may be particularly applicable in various electronic devices.
As shown in fig. 5, the dependent package installation apparatus 500 of some embodiments includes: a first acquisition unit 501, a second acquisition unit 502 and a mounting unit 503. The first obtaining unit 501 is configured to obtain a second configuration parameter of a second development environment in response to a request for installing a dependency package of a target application in the second development environment, where the second development environment is a development environment switched from a first development environment in which a base dependency package corresponding to the target application is already installed; the second obtaining unit 502 is configured to obtain, according to the second configuration parameter, a second additional dependency package adapted to the second development environment from an additional dependency package group, where the additional dependency package group is a set of different dependency packages adapted to the target application in each development environment, and the base dependency package is a dependency package adapted to any development environment for the target application; the installation unit 503 is configured to install a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
In an alternative implementation of some embodiments, before installing the unit 503, the dependent package installation apparatus 500 further includes: a third obtaining unit, configured to obtain a first configuration parameter of the first development environment in response to receiving a request for installing a dependency package of the target application program in the first development environment, and obtain a first additional dependency package adapted to the first development environment from the additional dependency package group according to the first configuration parameter; a fourth obtaining unit, configured to obtain the base dependency package corresponding to the target application; a dependent package installation unit configured to install the first additional dependent package and the base dependent package in the first development environment.
In an optional implementation manner of some embodiments, before the second obtaining unit 502, the dependent package installation apparatus 500 further includes: and a dependency package group acquisition unit configured to acquire a dependency package set of each development environment in which the target application is installed, in advance, wherein in the dependency package set, a dependency package adapted to any development environment of the target application is used as the basic dependency package, different dependency packages adapted to different development environments of the target application are used as additional dependency packages, and each additional dependency package is added to an additional dependency package group.
In an optional implementation manner of some embodiments, before the second obtaining unit 502, the dependent package installation apparatus 500 further includes: and the recording unit is configured to record the configuration parameters of each development environment correspondingly installed by the target application program and the additional dependency packages matched with each configuration parameter.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to FIG. 6, a block diagram of an electronic device (e.g., computing device 101 of FIG. 1)600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device in some embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle-mounted terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a request for installing a dependency package of a target application program in a second development environment, and acquiring second configuration parameters of the second development environment, wherein the second development environment is a development environment switched from a first development environment in which a basic dependency package corresponding to the target application program is installed; acquiring a second additional dependency package adapted to the second development environment from an additional dependency package group according to the second configuration parameter, where the additional dependency package group is a set of different dependency packages adapted to the target application program in each development environment, and the base dependency package is a dependency package adapted to any development environment for the target application program; installing a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first acquisition unit, a second acquisition unit, and a mounting unit. For example, the first obtaining unit may be further described as "obtaining the second configuration parameter of the second development environment in response to a request for installing a dependency package of a target application in a second development environment, where the second development environment is a development environment switched from a first development environment in which a base dependency package corresponding to the target application is already installed".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method of relying party installation comprising:
responding to a request for installing a dependency package of a target application program in a second development environment, and acquiring second configuration parameters of the second development environment, wherein the second development environment is a development environment switched from a first development environment, and a basic dependency package corresponding to the target application program is installed in the first development environment;
acquiring a second additional dependency package adapted to the second development environment from an additional dependency package group according to the second configuration parameter, wherein the additional dependency package group is a set of different dependency packages adapted to the target application in each development environment, and the base dependency package is a dependency package adapted to the target application in any development environment;
installing a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
2. The method of claim 1, wherein prior to installing a second additional dependency package in the second development environment, the method further comprises:
in response to receiving a request of installing a dependency package of the target application program in a first development environment, acquiring first configuration parameters of the first development environment, and acquiring a first additional dependency package adapted to the first development environment from the additional dependency package group according to the first configuration parameters;
acquiring the basic dependency package corresponding to the target application program;
installing the first additional dependency package and the base dependency package in the first development environment.
3. The method of claim 1, wherein prior to said obtaining a second additional dependency package adapted to the second development environment from an additional dependency package group according to the second configuration parameter, the method further comprises:
the method comprises the steps of obtaining a dependency package set of each development environment correspondingly installed by a target application program in advance, taking a dependency package adapted to any development environment of the target application program as a basic dependency package in the dependency package set, taking different dependency packages respectively adapted to different development environments of the target application program as additional dependency packages, and adding each additional dependency package to an additional dependency package group.
4. The method of claim 3, wherein the method further comprises:
and recording the configuration parameters of each development environment correspondingly installed by the target application program and the additional dependency packages matched with each configuration parameter.
5. A bag-dependent mounting apparatus comprising:
a first obtaining unit, configured to obtain a second configuration parameter of a second development environment in response to a request for installing a dependency package of a target application in the second development environment, where the second development environment is a development environment switched from a first development environment in which a base dependency package corresponding to the target application is already installed;
a second obtaining unit configured to obtain, according to the second configuration parameter, a second additional dependency package adapted to the second development environment from an additional dependency package group, where the additional dependency package group is a set of different dependency packages adapted to the target application in each development environment, and the base dependency package is a dependency package adapted to the target application in any development environment;
an installation unit configured to install a second additional dependency package in the second development environment based on the base dependency package installed in the first development environment.
6. The dependent package installation apparatus of claim 5, wherein prior to the installation unit, the apparatus further comprises:
a third obtaining unit, configured to obtain a first configuration parameter of a first development environment in response to receiving a request for installing a dependency package of the target application in the first development environment, and obtain a first additional dependency package adapted to the first development environment from the additional dependency package group according to the first configuration parameter;
a fourth obtaining unit configured to obtain the base dependency package corresponding to the target application;
a dependent package installation unit configured to install the first additional dependent package and the base dependent package in the first development environment.
7. The dependent package installation apparatus according to claim 5, wherein before the second acquisition unit, the apparatus further comprises:
a dependency package group obtaining unit configured to obtain in advance a dependency package set of each development environment in which the target application is installed, wherein in the dependency package set, a dependency package adapted to any development environment of the target application is used as the base dependency package, different dependency packages adapted to different development environments of the target application are used as additional dependency packages, and each additional dependency package is added to an additional dependency package group.
8. The dependent package installation apparatus according to claim 7, wherein before the second acquisition unit, the apparatus further comprises:
and the recording unit is configured to record the configuration parameters of each development environment correspondingly installed by the target application program and the additional dependency packages matched with each configuration parameter.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-4.
CN202011603014.4A 2020-12-29 2020-12-29 Dependency package installation method and device, electronic equipment and computer readable medium Pending CN112596753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011603014.4A CN112596753A (en) 2020-12-29 2020-12-29 Dependency package installation method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011603014.4A CN112596753A (en) 2020-12-29 2020-12-29 Dependency package installation method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN112596753A true CN112596753A (en) 2021-04-02

Family

ID=75203954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011603014.4A Pending CN112596753A (en) 2020-12-29 2020-12-29 Dependency package installation method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN112596753A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261060A1 (en) * 2003-06-20 2004-12-23 Haselden J. Kirk Dependency based package deployment
CN109634617A (en) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 Software installation method, user equipment, storage medium and device
CN111124454A (en) * 2019-12-25 2020-05-08 南京医康科技有限公司 Mirror image construction method and device, electronic equipment and storage medium
CN111309375A (en) * 2020-02-11 2020-06-19 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating remote procedure call toolkit
CN111522577A (en) * 2020-04-13 2020-08-11 京东数字科技控股有限公司 Dependency package version management method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040261060A1 (en) * 2003-06-20 2004-12-23 Haselden J. Kirk Dependency based package deployment
CN109634617A (en) * 2018-10-25 2019-04-16 深圳壹账通智能科技有限公司 Software installation method, user equipment, storage medium and device
CN111124454A (en) * 2019-12-25 2020-05-08 南京医康科技有限公司 Mirror image construction method and device, electronic equipment and storage medium
CN111309375A (en) * 2020-02-11 2020-06-19 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating remote procedure call toolkit
CN111522577A (en) * 2020-04-13 2020-08-11 京东数字科技控股有限公司 Dependency package version management method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANGZHILIANG: "在 NodeJs 上搭建 React 开发环境", pages 1 - 6, Retrieved from the Internet <URL:https://www.cnblogs.com/hellowzl/p/6046142.html#> *

Similar Documents

Publication Publication Date Title
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN111930534A (en) Data calling method and device and electronic equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111432001A (en) Method, apparatus, electronic device, and computer-readable medium for jumping scenes
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111355784B (en) Method, device, medium and electronic equipment for processing request information
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN110619101A (en) Method and apparatus for processing information
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN114860213A (en) Application package generation method, device, equipment and medium
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN113518183A (en) Camera calling method and device and electronic equipment
CN112596753A (en) Dependency package installation method and device, electronic equipment and computer readable medium
CN112230986A (en) Project file generation method and device, electronic equipment and computer readable medium
CN113778566A (en) Native application calling method and device, electronic equipment and computer readable medium
CN113126985A (en) Method, device, electronic equipment and computer readable medium for page rendering
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN113391860A (en) Service request processing method and device, electronic equipment and computer storage medium
CN111414161A (en) Method, device, medium and electronic equipment for generating ID L file
CN111309323A (en) Parameter initialization method and device and electronic equipment
CN111241443A (en) Method and device for pushing information and electronic equipment
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination