Repo build and dev env doesn’t work on Windows 10
See original GitHub issuepkglint doesn’t work on Windows it seems - or something is running chmod which obviously does not exist.
C:\Users\lpack\Documents\Code\aws-cdk>node --version
v8.11.2
lerna info lifecycle prepare
lerna sill runScript prepare pkglint
lerna sill runScriptInDir prepare [] pkglint
lerna sill getExecOpts { cwd: 'C:\\Users\\lpack\\Documents\\Code\\aws-cdk\\packages\\pkglint' }
lerna sill pkglint
lerna ERR! execute Error occured with 'pkglint' while running 'npm run prepare'
lerna ERR! npm run prepare [pkglint] Output from stdout:
> pkglint@0.6.0 prepare C:\Users\lpack\Documents\Code\aws-cdk\packages\pkglint
> tsc && tslint -p . && chmod +x bin/pkglint
lerna ERR! npm run prepare [pkglint] Output from stderr:
'chmod' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkglint@0.6.0 prepare: `tsc && tslint -p . && chmod +x bin/pkglint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkglint@0.6.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lpack\AppData\Roaming\npm-cache\_logs\2018-06-06T21_16_29_706Z-debug.log
lerna ERR! execute Error occured with 'pkglint' while running 'npm run prepare'
{ Error: Command failed: npm run prepare
'chmod' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pkglint@0.6.0 prepare: `tsc && tslint -p . && chmod +x bin/pkglint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pkglint@0.6.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lpack\AppData\Roaming\npm-cache\_logs\2018-06-06T21_16_29_706Z-debug.log
> pkglint@0.6.0 prepare C:\Users\lpack\Documents\Code\aws-cdk\packages\pkglint
> tsc && tslint -p . && chmod +x bin/pkglint
at Promise.all.then.arr (C:\Users\lpack\Documents\Code\aws-cdk\node_modules\lerna\node_modules\execa\index.js:236:11)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
code: 1,
killed: false,
stdout: '\n> pkglint@0.6.0 prepare C:\\Users\\lpack\\Documents\\Code\\aws-cdk\\packages\\pkglint\n> tsc && tslint -p . && chmod +x bin/pkglint\n\n',
stderr: '\'chmod\' is not recognized as an internal or external command,\r\noperable program or batch file.\r\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! pkglint@0.6.0 prepare: `tsc && tslint -p . && chmod +x bin/pkglint`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the pkglint@0.6.0 prepare script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR! C:\\Users\\lpack\\AppData\\Roaming\\npm-cache\\_logs\\2018-06-06T21_16_29_706Z-debug.log\n',
failed: true,
signal: null,
cmd: 'npm run prepare',
timedOut: false,
pkg:
Package {
_package:
{ name: 'pkglint',
version: '0.6.0',
private: true,
description: 'Validate and fix package.json files',
main: 'lib/index.js',
types: 'lib/index.d.ts',
repository: [Object],
pkglint: [Object],
bin: [Object],
scripts: [Object],
keywords: [Array],
author: [Object],
license: 'Apache-2.0',
devDependencies: [Object],
dependencies: [Object] },
_location: 'C:\\Users\\lpack\\Documents\\Code\\aws-cdk\\packages\\pkglint' },
exitCode: 1 }
C:\Users\lpack\Documents\Code\aws-cdk>node --version
v8.11.2
C:\Users\lpack\Documents\Code\aws-cdk>
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Troubleshoot pipeline runs - Azure DevOps - Microsoft Learn
Learn how to troubleshoot pipeline runs in Azure Pipelines and Team Foundation Server.
Read more >Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Ensure that you have the Windows Subsystem for Linux enabled, and that you're using Windows Build version 18362 or later. To enable WSL...
Read more >Create target environment - Azure Pipelines - Microsoft Learn
Typical examples of environment names are Dev, Test, QA, Staging, ... Deployment history, Pipeline name and run details get recorded for ...
Read more >Git clone or Git push fails to an Azure DevOps repository
This article discusses problems that might occur when you try to perform Git clone or Git push function to an Azure DevOps repository....
Read more >Set up new environments, Azure DevOps, and branches for ...
Deploy a build environment and an empty Main branch in Microsoft Azure DevOps [1]. Deploy a development environment. Create the Dev branch and ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rix0rrr from a developer experience point of view, WSL would not really work here as a developer would likely want to use their native IDEs for development.
Of course, there’s no reason why built packages themselves wouldn’t work but I’ll have a play.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.