我正在尝试安装readdir-enhanced包:
https://www.npmjs.com/package/readdir-enhanced
当我运行这个命令时:
npm install readdir-enhanced --save-dev
我得到以下错误转储,它与 NPM 安装日志中的内容相同(注意,前 585 行未显示,因为文件很大,并且这些行包含完整的“愚蠢”树):
$ npm install readdir-enhanced --save
...
586 warn basil@1.0.0 No description
587 warn basil@1.0.0 No repository field.
588 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
589 warn enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename './zeppelin-os-work/basil/node_modules/.staging/fsevents-f5a9ea9f/node_modules/abbrev' -> './zeppelin-os-work/basil/node_modules/.staging/abbrev-0837c875'
590 verbose enoent SKIPPING OPTIONAL DEPENDENCY: This is related to npm not being able to find a file.
590 verbose enoent SKIPPING OPTIONAL DEPENDENCY:
591 verbose stack Error: ENOENT: no such file or directory, rename './zeppelin-os-work/basil/node_modules/.staging/zos-0b4473df/node_modules/@mrmlnc/readdir-enhanced' -> './zeppelin-os-work/basil/node_modules/.staging/@mrmlnc/readdir-enhanced-51fb6215'
592 verbose cwd ./zeppelin-os-work/basil
593 verbose Linux 4.15.0-22-generic
594 verbose argv "./.nvm/versions/node/v10.2.1/bin/node" "./.nvm/versions/node/v10.2.1/bin/npm" "install" "readdir-enhanced" "--save"
595 verbose node v10.2.1
596 verbose npm v6.1.0
597 error path ./zeppelin-os-work/basil/node_modules/.staging/zos-0b4473df/node_modules/@mrmlnc/readdir-enhanced
598 error code ENOENT
599 error errno -2
600 error syscall rename
601 error enoent ENOENT: no such file or directory, rename './zeppelin-os-work/basil/node_modules/.staging/zos-0b4473df/node_modules/@mrmlnc/readdir-enhanced' -> './zeppelin-os-work/basil/node_modules/.staging/@mrmlnc/readdir-enhanced-51fb6215'
602 error enoent This is related to npm not being able to find a file.
603 verbose exit [ -2, true ]
这个.staging目录是什么,我该如何解决这个问题?
相关版本:
- Ubuntu:18.04,仿生海狸
- Node.JS:v10.2.1
- NPM:6.1.0