GithubHelp home page GithubHelp logo

Comments (5)

ranm8 avatar ranm8 commented on May 12, 2024 2

Thanks for reporting this issue!
We're working to resolve it and will keep this thread posted.

from bit.

dfoverdx avatar dfoverdx commented on May 12, 2024 2

Nevermind. I missed the note in the installation guide regarding Windows.

Note - Windows installations

If you are using Windows, add the --no-optional flag to the install command. npm install bit-bin --global --no-optional

@baoduy Hope this helps!

from bit.

baoduy avatar baoduy commented on May 12, 2024 1

Hi All
I'm still facing the issue on Window 10 event the Window-tools and Python are installed.
Please share tip how to resolve it?

  posix.cc
  win_delay_load_hook.cc
..\src\posix.cc(2): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\Users\Steven
\AppData\Roaming\npm\node_modules\bit-bin\node_modules\posix\build\posix.vcxproj]

from bit.

amitgilad3 avatar amitgilad3 commented on May 12, 2024

Hi @kingdaro this issue is fixed with the latest bit release

from bit.

dfoverdx avatar dfoverdx commented on May 12, 2024

Same here. Any update?

It looks to have something to do with a dependency on posix which doesn't (or shouldn't) apply to Windows.

> npm i -g posix

> [email protected] install C:\Users\MyUser\AppData\Roaming\npm\node_modules\posix
> node-gyp rebuild


C:\Users\MyUser\AppData\Roaming\npm\node_modules\posix>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  posix.cc
  win_delay_load_hook.cc
..\src\posix.cc(2): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory [C:\Users\MyUser
\AppData\Roaming\npm\node_modules\posix\build\posix.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:188:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\MyUser\AppData\Roaming\npm\node_modules\posix
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
+ [email protected]
added 2 packages from 9 contributors in 2.168s

from bit.

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.