Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during install with command line packages on Windows #207

Open
kireerik opened this issue Nov 30, 2018 · 3 comments
Open

Error during install with command line packages on Windows #207

kireerik opened this issue Nov 30, 2018 · 3 comments

Comments

@kireerik
Copy link

Title Description
Version 0.22.4
Type Issue
node 11.3.0
Operating System Windows 10

I am recieving the following error on bolt install:

[4/4] Linking workspace binaries...
error Error: Can't read shim path from 'project/packages/project/index.js', it doesn't appear to be a cmd-shim
error     at cb (AppData/Local/Yarn/Data/global/node_modules/bolt/dist/modern/utils/fs.js:154:75)
error     at AnyPromise (AppData/Local/Yarn/Data/global/node_modules/typeable-promisify/index.js:13:3)
error     at new Promise (<anonymous>)
error     at promisify (AppData/Local/Yarn/Data/global/node_modules/typeable-promisify/index.js:12:40)
error     at readCmdShim (AppData/Local/Yarn/Data/global/node_modules/bolt/dist/modern/utils/fs.js:154:42)
error     at cmdShim (AppData/Local/Yarn/Data/global/node_modules/bolt/dist/modern/utils/fs.js:96:88)
error     at createWindowsSymlink (AppData/Local/Yarn/Data/global/node_modules/bolt/dist/modern/utils/fs.js:122:18)
error     at Object.symlink (AppData/Local/Yarn/Data/global/node_modules/bolt/dist/modern/utils/fs.js:134:18)
kireerik added a commit to kireerik/refo that referenced this issue Dec 1, 2018
Except the refo package because of bolt issue 207
(boltpkg/bolt#207).

reason: Preparing for using bolt.
kireerik added a commit to kireerik/refo that referenced this issue Dec 1, 2018
reason: It is in sync with the root dependencies this way.

This is required because of bolt issue 207
(boltpkg/bolt#207).
kireerik added a commit to kireerik/refo that referenced this issue Dec 23, 2018
This is required because of bolt issue 207
(boltpkg/bolt#207).
kireerik added a commit to kireerik/refo that referenced this issue Dec 23, 2018
This is required because of bolt issue 207
(boltpkg/bolt#207).
@ajaymathur
Copy link
Member

Hey @kireerik , can also push a minimal reproducible example repository? It will be easier for me to debug and understand the issue. 🙂

@kireerik
Copy link
Author

Hi @ajaymathur, I think you can reproduce this issue in this repository: https://github.com/kireerik/refo

You will get the error for this package first (https://github.com/kireerik/refo/tree/master/index/index/core/index) and if you remove these lines from it's package.json, you will no longer get the error for that package:
https://github.com/kireerik/refo/blob/5f5757cc1110e55abc851116e8b55cbc6ccfbe78/index/index/core/index/package.json#L4-L6

After this, you will get the error for this package (https://github.com/kireerik/refo/tree/master/index/index/index). This package it self is very minimal. Also if you remove these lines here (https://github.com/kireerik/refo/blob/5f5757cc1110e55abc851116e8b55cbc6ccfbe78/index/index/index/package.json#L4-L6) then you will no longer get the error as well.

Note: This issue is related to command-line packages (https://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm).

@ajaymathur
Copy link
Member

@kireerik Thanks for sharing the repository. It is taking time since I do not have access to any windows machine at home at the moment. All my friends are travelling due to holiday. I should get a windows machine next week, I will take sometime and look into the issue then. Thanks 🙂

Bloodb0ne added a commit to Bloodb0ne/bolt that referenced this issue Jan 6, 2019
In certain situations where you have internal workspace dependencies you dont have shims created so calling "readCmdShim" expects to read a shim file. Instead we just create the shim file using the file referenced in "src".
Bloodb0ne added a commit to Bloodb0ne/bolt that referenced this issue Jan 6, 2019
bholloway added a commit to bholloway/bolt that referenced this issue Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants