NPM 命令不起作用 - ENAMETOOLONG:名称太长,mkdir

Aja*_*vek 5 npm

npm 命令突然停止工作。不确定我做错了什么。尝试重新安装还是失败

USBLRAVIVEKMB3:teach avivek$ npm
Error: ENAMETOOLONG: name too long, mkdir '/Users/avivek/Dev/Node/Experiments/teach/(node:4125) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:4125) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:4125) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
/usr/local'
    at Error (native)
Run Code Online (Sandbox Code Playgroud)

Dia*_*ana 0

在这里找到解决方案:https://github.com/aws/aws-cdk/issues/3899#issuecomment-580394612

在项目的根文件夹中创建一个.dockerignore文件并添加以下行: cdk*