在Mac(Catalina 10.15.1)上进行一些更新后,gulp无法正常工作。我重新安装了口香糖和纱线,但是仍然无法正常工作并且出现错误命令行是Zsh
➜ WorkSpace git:(master) ✗ gulp
internal/modules/cjs/loader.js:638
throw err;
^
**Error: Cannot find module './lib/argsert'**
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/usr/local/lib/node_modules/gulp/node_modules/yargs/yargs.js:1:17)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
➜ WorkSpace git:(master) ✗
[请帮助我,我该如何解决非常感谢
我找到了答案,但是如果我重新启动控制台,问题仍然存在
export PATH="$PATH:$HOME/.rvm/bin"
PATH=$PATH:/usr/local/bin
npm set prefix ~/.npm
PATH="$HOME/.npm/bin:$PATH"
PATH="./node_modules/.bin:$PATH"