标签:path 解决方法 not found zsh not 命令 command exp ack
环境:mac
工程已安装局部依赖包
npm install webpack webpack-cli -D
配置好webpack.config.js文件
但执行webpack报错
zsh: command not found: webpack
因为当前环境变量中,没有找到对应的命令,解决方法如下:
? echo ‘export PATH="./node_modules/.bin:$PATH"‘ >> ~/.zshrc
? source ~/.zshrc
[webpack]zsh: command not found: webpack
标签:path 解决方法 not found zsh not 命令 command exp ack
原文地址:https://www.cnblogs.com/minnie-huang/p/12812562.html