Coder Social home page Coder Social logo

Comments (3)

muwoo avatar muwoo commented on July 20, 2024

@fuxingjun 具体原因是用了 download 这个库,这个库依赖 decompress 这个库。decompress 这个库在windows解压压缩包里面的 node_modules 文件夹的时候通过的是这种方式:

if (x.type === 'symlink' && process.platform === 'win32') {
	return fsP.link(x.linkname, dest);
}

rubick 里面的一些插件是通过 npm 安装的 node_modules。npm 为了加速 node_nodules 的安装,所以使用了 smylink。但是windows上对 symlink 需要系统权限才可以执行 fs.link 或者 fs.symlink。这就导致了这次的报错。

后续解决方案:
rubick 插件包从 npm install 换成 yarn 可解决。yarn 安装看了一下没有 smylink。但这个改动涉及所有 preload.js 依赖node_modules的插件,所以可能稍微推迟

from rubick.

muwoo avatar muwoo commented on July 20, 2024

https://www.pilishen.com/posts/laravel-npm-install-syscall-symlink-error-reason-and-solution

from rubick.

muwoo avatar muwoo commented on July 20, 2024

@fuxingjun rubick 2.0 已发布,修改了插件发布体系,更新改动文档和介绍可以参见:https://juejin.cn/post/7045190452340850701/

from rubick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.