我不明白为什么这次我不能从我想要删除的节点项目中删除我的文件夹node_modules/ ...
通常npm uninstall做了很好的工作,npm rm也应该可以工作,npm prune甚至对于精确的包,但在这里我什么都不能删除?
例如,当我运行sudo npm uninstall node_modules/时,我会得到:
npm WARN server@1.0.0 No description
npm WARN server@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
up to date in 2.312s发布于 2021-03-10 00:44:27
你试过rm -rf node_modules吗?我使用它来删除所有节点模块。
https://stackoverflow.com/questions/51060663
复制相似问题