yanghong1105

Results comments of yanghong1105

为什么删除了node_modules后运行npm i会报错npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "i" npm ERR! node v7.8.0 npm ERR! npm v4.2.0 npm ERR! file C:\Users\Administrator.USER-20160806AJ\user-dashboard\package.json npm ERR! code EJSONPARSE npm...

需要检查哪块了,config.js也没报错,baseURL: 'http://localhost:8000/api/v1',

都有, baseURL: 'http://localhost:8000/api/v1', YQL: ['http://www.zuimeitianqi.com'], CORS: ['http://localhost:7001'], openPages: ['/login'], apiPrefix: '/api/v1', api: { userLogin: '/user/login', userLogout: '/user/logout', userInfo: '/userInfo', users: '/users', dashboard: '/dashboard', },

谢谢,您知道可不可以把className={style.title}这种格式的变成class="title"这种格式的可以不

我想请教您一个问题,我在components/Layout/Menu.js里面引入import styles from '../../iconfont'为什么老是报错,说是找不到,但是我的路径肯定是对的

我主要是想引入iconfont字体图标里面的图标,那里面包括iconfont.css,iconfont.eto,iconfont.js,iconfont.svg,iconfont.ttf,iconfont.woff文件,然后我在index.html里引入iconfont.css,根本不显示样式,如果在Menu.js里面引入import styles from '../../iconfont.css'的时候,又会提示.eto,.svg,.tff,.woff找不到,很是纠结,不知道怎么弄了

您好,npmrun build是空白的问题怎么解决的,我现在也是这种情况

utils/config.js中的这些地址吗? baseURL: 'http://localhost:8000/api/v1', YQL: ['http://www.zuimeitianqi.com'], CORS: ['http://localhost:7000'], openPages: ['/login'], apiPrefix: '/api/v1', api: { userLogin: '/user/login', userLogout: '/user/logout', userInfo: '/userInfo', users: '/users', user: '/user/:id', dashboard: '/dashboard',

listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; try_files $uri $uri/ /index.html; } location /api { proxy_pass http://localhost:8000/api; proxy_set_header Host $host;...

按照楼主说的nginx已经配置好,显示登录页,但是会报错,这怎么解决 XMLHttpRequest cannot load http://localhost:8000/api/v1/userInfo. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. 20login:1 XMLHttpRequest cannot load http://localhost:8000/api/v1/user/login. Response to preflight request...