javascript - vue运行问题
迷茫
迷茫 2017-04-11 11:16:15
[JavaScript讨论组]
$ cnpm run dev
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\lpove\\AppData\\         Roaming\\npm\\node_modules\\cnpm\\node_modules\\npm\\bin\\npm-cli.js" "--usercon         fig=C:\\Users\\lpove\\.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "         --registry=https://registry.npm.taobao.org" "run" "dev"
npm ERR! node v4.2.2
npm ERR! npm  v3.10.10
npm ERR! path G:\program\new-learn\6th-vue.js\5th-todo-list\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'G:\program\new-learn\6t         h-vue.js\5th-todo-list\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'G:\program\new-learn\6t         h-vue.js\5th-todo-list\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     G:\program\new-learn\6th-vue.js\5th-todo-list\npm-debug.log

使用npm 运行的时候报错 npm版本过低,就换了淘宝的镜像 cnpm,运行的时候报这样错误,各位dalao麻烦看一下问题;

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回复(1)
PHP中文网

运行的目录下有package.json 文件吗,如果有,确认下是否有包含‘dev’的‘scripts’节点。比如:

"scripts": {
    "dev": "执行的命令"
  }
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号