VUE npm run dev和npm run build命令出现这些错误

安装报错 · rivjmtd · 于 7年前 发布 · 7264 次阅读

[root@iZmjedkdjkvuw9Z app]# npm run dev npm ERR! Linux 3.10.0-693.2.2.el7.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev" npm ERR! node v6.14.0 npm ERR! npm v3.10.10 npm ERR! path /root/yii2_fecshop_docker/app/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/package.json' npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/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! /root/yii2_fecshop_docker/app/npm-debug.log [root@iZmjedkdjkvuw9Z app]# npm run build npm ERR! Linux 3.10.0-693.2.2.el7.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build" npm ERR! node v6.14.0 npm ERR! npm v3.10.10 npm ERR! path /root/yii2_fecshop_docker/app/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/package.json' npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/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! /root/yii2_fecshop_docker/app/npm-debug.log [root@iZmjedkdjkvuw9Z app]# cnpm install -bash: cnpm: command not found [root@iZmjedkdjkvuw9Z app]# npm run dev npm ERR! Linux 3.10.0-693.2.2.el7.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev" npm ERR! node v6.14.0 npm ERR! npm v3.10.10 npm ERR! path /root/yii2_fecshop_docker/app/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/package.json' npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/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! /root/yii2_fecshop_docker/app/npm-debug.log [root@iZmjedkdjkvuw9Z app]# npm run build npm ERR! Linux 3.10.0-693.2.2.el7.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "build" npm ERR! node v6.14.0 npm ERR! npm v3.10.10 npm ERR! path /root/yii2_fecshop_docker/app/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/package.json' npm ERR! enoent ENOENT: no such file or directory, open '/root/yii2_fecshop_docker/app/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! /root/yii2_fecshop_docker/app/npm-debug.log

共收到 2 条回复
Terry#17年前 0 个赞

仔细看安装文档,https://github.com/fecshop/yii2_fecshop_docker

在宿主主机中操作:

1.进入 yii2_fecshop_docker/app, 也就是将 vue_fecshop_appserver 下载到yii2_fecshop_docker/app/下面

参看文档:https://github.com/fecshop/vue_fecshop_appserver ,进行下载,安装环境

对于你的报错:/root/yii2_fecshop_docker/app/package.json 找不到

你看看: https://github.com/fecshop/vue_fecshop_appserver 里面没有package.json吗?

就是这个文件:https://github.com/fecshop/vue_fecshop_appserver/blob/master/package.json

这种问题,不胜其烦,各位安装的时候,带上眼镜,好好看文档,多操作,操作的结果看结果报告是否执行成功

这类问题真的不胜其烦,对于一个程序员,尤其是php程序员,出现问题,没有分析问题的原因和解决的能力吗?

Terry#27年前 0 个赞

出现问题,能否先自己回头看几遍文档, 自己分析下原因?

而不是出现点啥问题,就往这里发帖?

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics