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.

schematics generating a wrong npm command

See original GitHub issue

🐞 Bug report

Description

If you create a new scully website, the npm run scully script fails. If no one is working on it, please let me know so I can submit a fix.

🔬 Minimal Reproduction

On terminal:

  • ng new blog
  • ng add @scullyio/init
  • ng build --prod
  • npm run scully

💻Your Environment

Angular Version:

Angular CLI: 11.0.7
Node: 14.15.4
OS: darwin x64

Scully Version:

  "@scullyio/init": "^1.1.1",
  "@scullyio/ng-lib": "^1.0.0",
  "@scullyio/scully": "^1.0.0",

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
quentinhayotcommented, Mar 12, 2021

I was able to make it work by changing the package.json as follow:

    "scully": "npm scully -- --project myproject",
    "scully:serve": "npx scully serve -- --project myproject"

to

    "scully": "npx scully --project myproject",
    "scully:serve": "npx scully serve --project myproject"
3reactions
flackcommented, Mar 11, 2021

I have the same problem on a fresh angular project. This is the output I get:

$ npm run scully

> my-app@0.0.0 scully /home/flack/git/my-app
> npm scully --


Usage: npm <command>

where <command> is one of:
    access, adduser, audit, bin, bugs, c, cache, ci, cit,
    clean-install, clean-install-test, completion, config,
    create, ddp, dedupe, deprecate, dist-tag, docs, doctor,
    edit, explore, fund, get, help, help-search, hook, i, init,
    install, install-ci-test, install-test, it, link, list, ln,
    login, logout, ls, org, outdated, owner, pack, ping, prefix,
    profile, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, team, test, token, tst, un,
    uninstall, unpublish, unstar, up, update, v, version, view,
    whoami

npm <command> -h  quick help on <command>
npm -l            display full usage info
npm help <term>   search for help on <term>
npm help npm      involved overview

Specify configs in the ini-formatted file:
    /home/flack/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@6.14.8 /usr/share/npm

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-app@0.0.0 scully: `npm scully --`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the my-app@0.0.0 scully 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!     /home/flack/.npm/_logs/2021-03-11T15_37_41_987Z-debug.log
Read more comments on GitHub >

github_iconTop Results From Across the Web

building schematics gives error in angular 10 - Stack Overflow
P.S. I'm using Angular-10 to create library. Thanks. ... At the root level package.json file, add this under scripts section - "alternate": "./ ......
Read more >
How To Solve The Schematic Workflow Failed Error In Angular
Open VS Code, then go to the Terminal and click on the new terminal. Run the command “npm cache clean --force" which is...
Read more >
Schematic "ng-new" not found in collection ... - GitHub
Update Angular CLI from version 1.7.6 to 6.0.1 using command "npm install -g @angular/cli"; Step 2 ... Generates an error: Schematic ...
Read more >
yang-schematics - npm
The purpose of YANG is to create a more production-ready Angular application. It use the Angular Schematics to generate the code.
Read more >
Collection "@igniteui/angular-schematics" cannot be resolved
Installed : C:\_ng\new_ig1>npm i -g @igniteui/angular-schematics. then run command below, and got the error, any advice why?
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