npm错误代码ENOENT错误no-4058 npm无法find文件
这个问题几乎与每个npm
模块的安装有关。
我认为这与SQLite 3
模块有关,因为每当我使用npm init创build一个新项目,并安装SQLite 3
以外的其他模块(比如crypto-js
或yargs
等),它就可以工作。
但是在安装SQLite 3
之后不久,没有其他模块可以安装,并且发生以下错误。
我试图到处search,但无法find解决scheme。 我希望我能在这里find一个解决scheme。
我的Node
版本是v8.2.1, npm
版本是5.3.0。 我的操作系统是Windows 8.1 Professional。
F:\ name> npm install crypto -js –save npm WARN todo-api@1.0.0没有描述npm WARN todo-api@1.0.0没有版本库字段。
npm ERR! pathF:\ name \ node_modules \ sqlite3 \ node_modules \ node-pre-gyp \ node_module s \ npmlog \ node_modules \ are-we-there-yet \ node_modules \ delegates npm ERR! 代码ENOENT npm ERR! errno -4058 npm ERR! 系统调用重命名npm ERR! enoent ENOENT:no such file or directory,rename'F:\ name \ node_modules \ sqlite3 \ node_modules \ node-pre-gyp \ node_modules \ npmlog \ node_modules \ are-we-there- yet \ node_modules \ delegates' – >'F :\ name \ node_modules \ sqlite3 \ node_modules \ node -p re-gyp \ node_modules \ npmlog \ node_modules \ are-we-there-yet \ node_modules.delegates .DELETE'npm ERR! enoent这与npm无法find文件有关。 npm ERR! ENOENT
npm ERR! 这个运行的完整日志可以在下面find:npm ERR! C:\ Users \ Usman Ahmad \ AppData \ Roaming \ npm-cache_logs \ 2017-08-25T09_ 49_02_538Z-debug.log