Open cjj21212 opened 2 years ago
执行的命令是 npm run local 吗
对的,项目跑起来没问题,但是进行登录登录不进去,然后就出现上面提示 PS D:\githup实战项目\vue2-manage> npm run local
vue2-manage@1.0.1 local D:\githup实战项目\vue2-manage cross-env NODE_ENV=local node build/dev-server.js
[HPM] Proxy created: [ '/shopping', '/ugc', '/v1', '/v2', '/v3', '/v4', '/bos', '/member', '/promotion', '/eus', '/payapi', '/admin', '/statis', '/img' ] -> http://localhost:8001
Starting dev server... (node:22644) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency (Use
node --trace-warnings ...
to show where the warning was created) (node:22644) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'find' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'head' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'set' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'test' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'to' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency (node:22644) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
DONE Compiled successfully in 6682ms 下午2:12:36
Listening at http://localhost:8002
[HPM] Error occurred while trying to proxy request /admin/login from localhost:8002 to http://localhost:8001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors) [HPM] Error occurred while trying to proxy request /admin/login from localhost:8002 to http://localhost:8001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
使用npm run local需要启动另外一个后端服务,直接使用npm run dev运行就行
大佬 你好 接口好像出问题了
[HPM] Error occurred while trying to proxy request /admin/login from localhost:8002 to http://localhost:8001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)