$ 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麻烦看一下问题;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
运行的目录下有package.json 文件吗,如果有,确认下是否有包含‘dev’的‘scripts’节点。比如: