我用:
Laravel 5.4
Windows 10
节点版本:v6.11.1
Npm版本:5.3.0
如果我跑:npm install --no-bin-links
存在错误:
npm WARN deprecated express@2.5.11: express 2.x series is deprecated
npm WARN deprecated connect@1.9.2: connect 1.x series is deprecated
npm ERR! path C:\xampp\htdocs\myshop\node_modules\bs-recipes
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\xampp\htdocs\myshop\node_modules\bs-recipes' -> 'C:\xampp\htdocs\myshop\node_modules\.bs-recipes.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\windows10\AppData\Roaming\npm-cache\_logs\2017-08-30T00_41_20_491Z-debug.log
如何解决错误?
更新:
我卸载Node版本:v6.11.1并安装新版本v8.4.0,但它是相同的
答案 0 :(得分:0)
我不熟悉此错误,但控制台输出明确指出:
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\xampp\htdocs\myshop\node_modules\bs-recipes' -> 'C:\xampp\htdocs\myshop\node_modules\.bs-recipes.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
尝试以下方法:
npm install
。提示:始终阅读错误消息。大多数时候它会告诉你究竟是什么问题。
<强>更新强>
尝试在github上检查此类似问题:npm 17444