Nodemon的Node js和npm安装全局问题

时间:2020-10-20 15:16:02

标签: node.js npm node-modules npm-install

我正在学习Web开发。为此,我安装了nodejs:。我已经在CMD上运行以下命令:

npm install nodemon --global

一段时间后出现以下错误

PS C:\Users\SANKET PRAKHER\Desktop\complete web development bootcamp\web dev tutorials\tut70> npm install nodemon --global
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\nodemon\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code EEXIST
npm ERR! path C:\Users\SANKET PRAKHER\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js
npm ERR! dest C:\Users\SANKET PRAKHER\AppData\Roaming\npm\nodemon
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\SANKET PRAKHER\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon.js' -> 'C:\Users\SANKET PRAKHER\AppData\Roaming\npm\nodemon'
npm ERR! File exists: C:\Users\SANKET PRAKHER\AppData\Roaming\npm\nodemon
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\SANKET PRAKHER\AppData\Roaming\npm-cache\_logs\2020-10-20T14_40_01_614Z-debug.log

请问您能解释什么错误以及我该如何解决。我正在使用Window 10

0 个答案:

没有答案
相关问题