vue运行问题

$ 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麻烦看一下问题;

阅读 5.3k
1 个回答

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

"scripts": {
    "dev": "执行的命令"
  }
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题