繁体   English   中英

如何解决 npm ERR! 使用 datepicker 时 vuejs 中的代码 E404

[英]how to solve npm ERR! code E404 in vuejs when using datepicker

I'm very new to Vue.js and now I'm trying to use vue.js datepicker from https://ly525.github.io/material-vue-daterange-picker/guide.html#introduction

但是当我导入要使用的脚本时,我收到了这条消息

'VMdDateRangePicker' 已声明,但它的值永远不会被读取。ts(6133) 找不到模块 'v-md-date-range-picker' 的声明文件。 'd:/IG Group/report_dashboard/issue-reporting-frontend(backup)/node_modules/v-md-date-range-picker/dist/v-md-date-range-picker.cjs.js' 隐含一个'随便哪种。 如果存在,请尝试npm install @types/v-md-date-range-picker picker 或添加包含declare module 'v-md-date-range-picker'; ts(7016)

我尝试使用命令npm install @types/v-md-date-range-picker但我收到以下消息:

npm 错误! 代码 E404 npm 错误! 404 未找到 - 获取https://registry.npmjs.org/@types%2fv-md-date-range-picker - 未找到 npm ERR。 404 npm ERR, 404 '@types/v-md-date-range-picker@latest' is not in the npm registry, npm ERR, 404 You should bug the author to publish it (or use the name yourself.) npm ERR ! 404 npm 错误! 404 请注意,您也可以从 npm 错误安装! 404 压缩包、文件夹、http url 或 git url。

如何解决这个问题呢?

尝试这个:

npm config set registry http://registry.npmjs.org

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM