如何安装npm清理

时间:2018-11-29 17:40:28

标签: node.js npm sanitize

我正在学习node.js,并尝试安装npm sanitize,但是它不起作用。 安装代码和错误如下

C:\Users\Stephen Lee\Desktop\nodejs>npm install -S sanitize-html
npm WARN nodejs@1.0.0 No description
npm WARN nodejs@1.0.0 No repository field.

npm ERR! path C:\Users\Stephen Lee\Desktop\nodejs\node_modules\domutils
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\Stephen Lee\Desktop\nodejs\node_modules\domutils' -> 'C:\Users\Stephen Lee\Desktop\nodejs\node_modules\.domutils.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\Stephen Lee\AppData\Roaming\npm-cache\_logs\2018-11-28T10_13_00_967Z-debug.log

尽管我做了npm init来创建json文件,但是没有用 请帮助我解决此问题。

0 个答案:

没有答案