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

Failed javascript:install:webpack #14

Closed
kivanio opened this issue Sep 9, 2021 · 4 comments
Closed

Failed javascript:install:webpack #14

kivanio opened this issue Sep 9, 2021 · 4 comments

Comments

@kivanio
Copy link

kivanio commented Sep 9, 2021

./bin/rails javascript:install:webpack
...
...
Add build script
         run  npm set-script build "webpack --config webpack.config.js" from "."

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:
    /Users/kivanio/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@6.14.15 /usr/local/Cellar/node@14/14.17.6/lib/node_modules/npm

Did you mean this?
    run-script
@excid3
Copy link
Contributor

excid3 commented Sep 9, 2021

Update your npm to the latest. The set-script command was added in npx version 7.1.0. 👍

The readme was updated to reflect this the other day.

@kivanio
Copy link
Author

kivanio commented Sep 9, 2021

Nice, Thanks.

@kivanio kivanio closed this as completed Sep 9, 2021
@dhh
Copy link
Member

dhh commented Sep 9, 2021

Possible that we might need to add some pre-flight checks for minimum versions.

@aledalgrande
Copy link

aledalgrande commented Sep 13, 2021

This came up on my machine when trying to create a project with Rails main and the same command as in this DHH's video https://www.youtube.com/watch?v=JsNtLiph87Y

npm install npm@latest -g fixed it

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

4 participants