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

5f0d552i  于 2022-11-14  发布在  其他
关注(0)|答案(1)|浏览(384)

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)
wqnecbli

wqnecbli1#

在此找到解决方案:https://github.com/aws/aws-cdk/issues/3899#issuecomment-580394612
在项目的根文件夹中创建一个.dockerignore文件,并添加以下行:cdk*

相关问题