为什么NPM无法安装mysql?

时间:2019-05-01 19:58:01

标签: node.js npm

NPM无法在Windows 7 64位上安装mysql。我删除了npm-cache,确保运行正确的npm.cmd,使用Windows命令行和Cygwin64终端,但这没有帮助。

命令行:

npm install mysql --save
npm ERR! path C:\development\domovnik\domovnik-backend\node_modules\mysql\node_modules\string_decoder
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\development\domovnik\domovnik-backend\node_modules\mysql\node_modules\string_decoder' -> 'C:\development\domovnik\domovnik-backend\node_modules\mysql\node_modules\.string_decoder.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\user\AppData\Roaming\npm-cache\_logs\2019-05-01T19_36_05_576Z-debug.log

版本:

npm version
{ 'adonis-api-app': '4.1.0',
  npm: '5.6.0',
  ares: '1.10.1-DEV',
  cldr: '32.0',
  http_parser: '2.8.0',
  icu: '60.1',
  modules: '57',
  napi: '3',
  nghttp2: '1.29.0',
  node: '8.11.2',
  openssl: '1.0.2o',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.19.1',
  v8: '6.2.414.54',
  zlib: '1.2.11' }

文件C:\Users\user\AppData\Roaming\npm-cache_logs\2019-05-01T19_36_05_576Z-debug.log

请告知。谢谢!

0 个答案:

没有答案