Issue with Scully CLI on Windows
See original GitHub issue🐞 Bug report
Description
Trying to run npx sully
or npx scully --
in windows CMD results in the following error:
'"-S"' is not recognized as an internal or external command,
operable program or batch file.
Trying the same commands in WSL gives:
/path/to/project/node_modules/.bin/scully: 11: exec: -S: not found
🔬 Minimal Reproduction
- Run
ng new
to create new angular project - Try adding scully via
ng add @scullyio/init
- The command will fail with the output
npm ERR! Could not resolve dependency: npm ERR! peer @angular/animations@"12.2.16" from @angular/platform-server@12.2.16
. - See this issue for workaround
- After workaround is finished, run
ng build
- After build is finished, run
npx scully
ornpx scully --
to receive error
💻Your Environment
Angular Version:
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 13.2.5
Node: 16.13.2
Package Manager: npm 8.5.2
OS: win32 x64
Angular: 13.2.4
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1302.5
@angular-devkit/build-angular 13.2.5
@angular-devkit/core 13.2.5
@angular-devkit/schematics 13.2.5
@angular/cli 13.2.5
@schematics/angular 13.2.5
rxjs 7.5.4
typescript 4.5.5
Scully Version:
{
"name": "my-blog",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"scully": "npx scully --",
"scully:serve": "npx scully serve --"
},
"private": true,
"dependencies": {
"@angular/animations": "~13.2.0",
"@angular/common": "~13.2.0",
"@angular/compiler": "~13.2.0",
"@angular/core": "~13.2.0",
"@angular/forms": "~13.2.0",
"@angular/platform-browser": "~13.2.0",
"@angular/platform-browser-dynamic": "~13.2.0",
"@angular/platform-server": "^13",
"@angular/router": "~13.2.0",
"@scullyio/init": "^3.0.0-beta.0",
"@scullyio/ng-lib": "^3.0.0-beta.0",
"@scullyio/platform-server": "^3.0.0-beta.0",
"@scullyio/scully": "^3.0.0-beta.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.2.5",
"@angular/cli": "~13.2.5",
"@angular/compiler-cli": "~13.2.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.1.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "~4.5.2"
}
}
🔥 Exception or Error
'"-S"' is not recognized as an internal or external command,
operable program or batch file.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
scully serve not working inside windows 10 · Issue #43 - GitHub
Yes, I'm using it inside the Angular 9 project. Steps I have taken are as follows: npx @angular/cli new scully-project --routing --style=scss ...
Read more >scullyio/community - Gitter
I'm suffering a Could not connect to server problem in a simple Angular 9.1.7 project. After ng add and ng build , I...
Read more >Error generating angular static html on pre-existing app with ...
I've been trying to generate static HTML with Scully and I keep getting the same error. I've looked it up several times with...
Read more >@scullyio/scully - npm
scully. This is the Scully CLI repo. for details see our documentation Scully is the best static site generator for Angular projects looking ......
Read more >Frequently Asked Questions - Scully.io
Scully documentation page containing Frequently Asked Questions,Ignoring Routes,Plugins,Route ... and CI/CD,File locations and Scully Command Line Interface.
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
No results found
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
@dgrbrady I finally was able to reproduce, I’m going to work on a solution this week
@SanderElias I am still facing issue with beta version and angular 13