npm eject 暴露webpack报错,less或sass添加报错

系统管理员 2023-06-14 10:53 136阅读 0赞

在使用react时候,添加sass或者less,需要暴露config里的webpack出来,直接npm eject会暴以下错;

Usage: npm

where 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, 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 -h quick help on
npm -l display full usage info
npm help search for help on
npm help npm involved overview

Specify configs in the ini-formatted file:
C:\Users\xj\.npmrc
or on the command line via: npm —key value
Config info can be viewed via: npm help config

npm@6.9.1-next.0 C:\Users\xj\AppData\Roaming\npm\node_modules\npm

正确做法,npm run eject

发表评论

表情:
评论列表 (有 0 条评论,136人围观)

还没有评论,来说两句吧...

相关阅读

    相关 npm

    之前在使用npm的时候,出现过一个问题,不管我使用npm下载插件,还是用npm运行项目(vue),都会报错 报错内容是:A Complete ..............