npm下载插件的时候报错

D:\phpStudy\PHPTutorial\WWW\wkzjwx\web>npm install --save vue2-editor 
npm WARN checkPermissions Missing write access to D:\phpStudy\PHPTutorial\WWW\wkzjwx\web\node_modules\extglob\node_modules\is-extglob
npm WARN checkPermissions Missing write access to D:\phpStudy\PHPTutorial\WWW\wkzjwx\web\node_modules\micromatch\node_modules\is-extglob
npm WARN checkPermissions Missing write access to D:\phpStudy\PHPTutorial\WWW\wkzjwx\web\node_modules\micromatch\node_modules\is-glob
npm WARN [email protected] No repository field.

npm ERR! path D:\phpStudy\PHPTutorial\WWW\wkzjwx\web\node_modules\extglob\node_modules\is-extglob
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'D:\phpStudy\PHPTutorial\WWW\wkzjwx\web\node_modules\extglob\node_modules\is-extglob'
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\mayn\AppData\Roaming\npm-cache\_logs\2018-08-10T06_43_31_157Z-debug.log

下载vue2-editor 编辑器的时候出上面的错误。

换个方式用cnpm下载就可以了cnpm install --save vue2-editor   就是这么简单。。

猜你喜欢

转载自blog.csdn.net/qq_33769914/article/details/81563196
今日推荐