Error installing webpack under Mac

npm installation always goes wrong, and then I delete the webpack-cli folder in node_modules and want to reinstall webpack, and then this happens

localhost:~ ouhiroshisakai$ sudo -s
bash-3.2-sharp npm install webpack -g
+ webpack@1.0.0
updated 1 package in 0.22s
bash-3.2-sharp webpack -v
bash: webpack: command not found
The

folder looks like this:

Jul.14,2022

install: npm I-g webpack-cli
use: npx webpack- v

in the project directory

if it helps you, please upvote or adopt ~

  • Error installing webpack under Mac

    npm installation always goes wrong, and then I delete the webpack-cli folder in node_modules and want to reinstall webpack, and then this happens localhost:~ ouhiroshisakai$ sudo -s bash-3.2-sharp npm install webpack -g + webpack@1.0.0 updated 1 packag...

    Jul.14,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bdc7a1-312dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bdc7a1-312dc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?