question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

  1. Run ng new to create new angular project
  2. Try adding scully via ng add @scullyio/init
  3. 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.
  4. See this issue for workaround
  5. After workaround is finished, run ng build
  6. After build is finished, run npx scully or npx 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:open
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SanderEliascommented, Mar 22, 2022

@dgrbrady I finally was able to reproduce, I’m going to work on a solution this week

0reactions
govi2010commented, Nov 11, 2022

@SanderElias I am still facing issue with beta version and angular 13

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found