gpt4 book ai didi

npm: ENOENT: 没有这样的文件或目录

转载 作者:行者123 更新时间:2023-12-03 18:29:13 24 4
gpt4 key购买 nike

我正在使用 npm 3.3.6当我尝试安装一堆模块时,出现以下错误:
npm i babel-cli babel-plugin-syntax-async-functions babel-plugin-transform-regenerator babel-polyfill babel-preset-es2015 babelify watchify browserify --save-dev

npm ERR! Darwin 15.0.0
npm ERR! argv "/Users/thomas/.nvm/versions/node/v5.0.0/bin/node" "/Users/thomas/.nvm/versions/node/v5.0.0/bin/npm" "i" "babel-cli" "babel-plugin-syntax-async-functions" "babel-plugin-transform-regenerator" "babel-polyfill" "babel-preset-es2015" "babelify" "watchify" "browserify" "--save-dev"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! path /Users/thomas/Desktop/esnext-bootstrap/node_modules/babel-cli/node_modules/chokidar/node_modules/fsevents/node_modules/asn1
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/Users/thomas/Desktop/esnext-bootstrap/node_modules/babel-cli/node_modules/chokidar/node_modules/fsevents/node_modules/asn1' -> '/Users/thomas/Desktop/esnext-bootstrap/node_modules/asn1'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /Users/thomas/Desktop/esnext-bootstrap/npm-debug.log

我不知道这里发生了什么,也不知 Prop 体是什么模块导致了这个问题。我可以看到它涉及 babel-cli , chokidar , 和 ans1 , 但是当我安装 babel-cli单独它工作没有错误。

只需单独安装每个模块,它就可以正常工作。

最佳答案

我有一个非常相似的问题,这是因为我试图从 Ubunutu 中已安装的 HGFS 卷进行 npm 安装。

这是因为我在 OSX 上使用 VMWare Fusion 来虚拟化 Ubuntu,然后在 Ubuntu 中挂载共享的 OSX 目录。

在未安装的目录(即我的 Ubuntu 主文件夹)中使用相同源的另一个 npm install 按预期工作。

关于npm: ENOENT: 没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33640805/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com