npx command not found

前端 未结 8 845
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 21:57

I am working with webpack and I need to execute ./node_modules/webpack/bin/webpack.js using npx. npx webpack would run the webpack bin

相关标签:
8条回答
  • 2020-12-02 22:36

    if you are using macOS, use sudo command

    sudo npm install -g npx
    

    0 讨论(0)
  • 2020-12-02 22:36

    check versions of node, npm, npx as given below. if npx is not installed then use npm i -g npx

    node -v
    npm -v
    npx -v
    
    0 讨论(0)
提交回复
热议问题