Coder Social home page Coder Social logo

can't running on windows about flipper HOT 11 CLOSED

facebook avatar facebook commented on May 5, 2024 4
can't running on windows

from flipper.

Comments (11)

passy avatar passy commented on May 5, 2024

That looks like it might be the electron part of the building failing? Does running node node_modules/electron/install.js cause any errors on its own?

from flipper.

Aexyn avatar Aexyn commented on May 5, 2024

I am getting this error

PS C:\Aman\sonar\Sonar> yarn
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > [email protected]" has incorrect peer dependency "babel-eslint@^7.2.3".
[4/4] Building fresh packages...
$ node node_modules/electron/install.js && node scripts/yarn-install.js
events.js:183
throw er; // Unhandled 'error' event
^
Error: spawn yarn ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

from flipper.

sschemer avatar sschemer commented on May 5, 2024

i update sonar and run it again,but there is another error,still on windows:
$ yarn
yarn install v1.7.0
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from instal
lation.
error [email protected]: The platform "win32" is incompatible with this module.
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

from flipper.

danielbuechele avatar danielbuechele commented on May 5, 2024

this should be fixed in the latest commit

from flipper.

sschemer avatar sschemer commented on May 5, 2024

@danielbuechele i update sonar ,and i get the first error again.

$ yarn
yarn install v1.7.0
[1/4] Resolving packages...
success Already up-to-date.
$ node node_modules/electron/install.js && node scripts/yarn-install.js
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn yarn ENOENT
    at _errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

from flipper.

FunnyDevs avatar FunnyDevs commented on May 5, 2024

me too, same problem

from flipper.

yljjiava avatar yljjiava commented on May 5, 2024

me too, same problem

from flipper.

yljjiava avatar yljjiava commented on May 5, 2024

问题已经解决,需要修改 F:\Sonar\scripts\yarn-install.js和D:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js两个文件,修改地方如下:
1.index.js在271行添加else if (process.platform === 'win32') {
sh = process.env.comspec || 'cmd'
shFlag = '/d /s /c'
conf.windowsVerbatimArguments = true
conf.shell=true
}
2.yarn-install.js 在39行修改成 const yarn = spawn(YARN_PATH, ['--mutex', 'file'], {
cwd,
shell:true
});
3.删除sonar目录下node_modules目录,重新运行npm install 安装

from flipper.

ThibaudCrespin avatar ThibaudCrespin commented on May 5, 2024

Try adding C:\Windows\System32\ to the PATH environment variable. Restart and it should work.

from flipper.

sschemer avatar sschemer commented on May 5, 2024

Try adding C:\Windows\System32\ to the PATH environment variable. Restart and it should work.

thanks. since recent relase,this bug has been fixed.

from flipper.

xiphirx avatar xiphirx commented on May 5, 2024

Closing since apparently it's been fixed

from flipper.

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.