English 中文(简体)
如何将一个项目从npm移至pnpm
原标题:How to migrate a project from npm to pnpm

我们建造了一个有深树的附属树木的项目,有<条码>npm 安装,在微软Windows(次要目标)下有许多问题。

我读过了<代码>pnpm,这似乎是我们的解决办法。

如何迁移我们封建的存放处?

利用<代码>pnpm从scratch中构建一个新系统?

最佳回答

最后,我对<代码>node_modules<>/code>做了补充,并重新将其从scratch和pnpm,并添加了<条码>concat<>>> 代码> /代码>,使之只有一个 Java本源,并应用 谷歌-compiler

The only difficulty was about bootstrap because it has changed a lot in two years. We need to keep the old look of it, so the command I used is pnpm install [email protected].

完成后,看管和感觉相同,但node_modules。 甲基溴消费量从8吨增加到12吨。

问题回答

可查阅pnpm import,其中采用以下编码:-lock.jsonyarn.lock,并生成pnpm s lock filepnpm-lock.yaml。 之后,可安装<代码>pnpm>,以安装项目附属设施。

https://pnpm.io/cli/import”rel=“nofollow noreferer”>documentation





相关问题
How to make Sequelize use singular table names

I have an model called User but Sequelize looks for the table USERS whenever I am trying to save in the DB. Does anyone know how to set Sequelize to use singular table names? Thanks.

What is Node.js? [closed]

I don t fully get what Node.js is all about. Maybe it s because I am mainly a web based business application developer. What is it and what is the use of it? My understanding so far is that: The ...

Clientside going serverside with node.js

I`ve been looking for a serverside language for some time, and python got my attention somewhat. But as I already know and love javascript, I now want learn to code on the server with js and node.js. ...

Can I use jQuery with Node.js?

Is it possible to use jQuery selectors/DOM manipulation on the server-side using Node.js?

How do I escape a string for a shell command in node?

In nodejs, the only way to execute external commands is via sys.exec(cmd). I d like to call an external command and give it data via stdin. In nodejs there does yet not appear to be a way to open a ...