🌱 I’m currently learning ...
🇨🇳 China Shanghai - 💻 Web developer
:dog: 微信小程序-小商城后台(基于 Node.js、MongoDB、Redis 开发的系统...)
🌱 I’m currently learning ...
🇨🇳 China Shanghai - 💻 Web developer
http://localhost:3000/返回404 没有报错信息
请问一下在阿里云centos服务器下,build不成功导致无法运行的原因是什么?
商品,分类只能增加不能删除吗?
增删改查,是不是还不全?
请教这是啥问题?
[root@localhost m-mall-admin]# npm start
> [email protected] start /root/wechat-app/m-mall-admin
> babel-node ./bin/www
sh: babel-node: 未找到命令
npm ERR! Linux 2.6.32-042stab116.1
npm ERR! argv "/root/lib/node-v6.10.2/bin/node" "/root/lib/node-v6.10.2/bin/npm" "start"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] start: `babel-node ./bin/www`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] start script 'babel-node ./bin/www'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the m-mall-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel-node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs m-mall-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls m-mall-admin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /root/wechat-app/m-mall-admin/npm-debug.log
I found a problem:
[2017-09-21 12:04:47.191] [ERROR] console - (node:8808) DeprecationWarning: open()
is deprecated in mongoose >= 4.11.0, use openUri()
instead, or set the useMongoClient
option if using connect()
or createConnection()
. See http://mongoosejs.com/docs/connections.html#use-mongo-client.
Hi 我分别运行
npm install
npm start
cd public
npm install
npm run watch
打开登录页面 http://localhost:3000/user/login
报错:
TypeError: this.$http(...).success is not a function
at Service.postRequest (ServiceBase.js:51)
对应代码:
// ServiceBase.js
/* POST */
postRequest(url, params = {}, search = {}) {
const deferred = this.$q.defer()
const headers = this.setHeaders()
const $$url = `${this.$$baseUrl}${this.url_prefix}${url}`
this.$http({
method: 'POST',
url: $$url,
data: params,
headers: headers,
params: search,
paramSerializer: '$httpParamSerializerJQLike'
})
.success((data, status, headers, config) => deferred.resolve(data))
.error((data, status, headers, config) => deferred.reject(data))
return deferred.promise
}
看起来好像angular的$http不对,是不是编译的时候缺少一些依赖??还是编译命令不对呢?
你好,我没接触过angular.js,只是想看下小程序的运行效果,我现在小程序和后台服务都已正常启动,但是前端angular项目,我执行npm run build,在public/build目录下只看到assets和chunk两个文件夹,并没有html文件,那应该怎么将angular项目部署到nginx里呢?
后台登录页面的URL是:http://localhost:3000/user/login
我自己弄出了一个直接删除掉订单的功能,但订单分类里有“已取消”这个分类,所以我想请教一下大神,应该怎么才能更改订单的状态?
ERROR in ./src/assets/css/main.css
Module build failed: SyntaxError: Use of const in strict mode.
你使用的NPM 及NODE 是什么版本?
mongoose 4.6.0 搜索产品时会返回这个错误,更新到4.7.1后要求添加cursor
this.model.model.aggregate([
{
$match: {
name: pattern
}
},
{
$group: {
_id: '$name',
num: {
$sum: 1
}
}
}
])
.cursor({})
.then(doc => res.tools.setJson(0, '调用成功', doc))
.catch(err => next(err))
程序启动之后自动跳转到404页面是怎么回事?
RT
克隆下的代码,在npm start 之前放在哪里呢?
RT
请问下,执行了npm run build
启动后前台能访问到后台localhost:3000/api 接口
但是打开后台管理页面localhost:3000 提示404
SyntaxError: Use of const in strict mode怎么破?
后台的安装配置,写的有点过于简单,特别是数据库的配置,还请完善一下!
后台用户名、密码多少????
后台的分类、商品没有做删除按钮吗??还有用户管理,微信管理这些???
您好,
大概在Linux上面装了一下您开发的这个, 有报错。 也看了您demo网站的成品。看了看您的代码里面 发现没有发现有前端的代码 求大神您指教一下 是不是缺什么东西
loading...
optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}
public 文件夹下执行 npm run build 出现报错: --colors Not sure what you mean there
同时console那提示错误:
Uncaught SyntaxError: Unexpected token < vendor.js?v=1527126755676:1
Uncaught SyntaxError: Unexpected token < app.js?v=1527126755676:1
这是怎么回事??有空帮忙看一眼。
作者您好,首先感谢你无私奉献精神,分享代码快乐。
我在npm install后
npm run build 运行结束后没有生成 build目录
我看您回复其他问题时,说要在public下面编译出build文件,确实,webpack.config.js中确定党env为production时dist为 build目录,求解决
我有腾讯云部署的,放那里,一段时间,数据库的数据就全没了!
后端已经返回token
前台小程序还是登录不进去 为什么呢
demo报502,能修复一下么
cd public、npm install、npm run build
ERROR in multi vendor
Module not found: Error: Cannot resolve module 'angular-i18n/angular-locale_ZH-CN.js' in /home/susu/m-mall-admin/public
@ multi vendor
这个怎么解决
有大侠可以详细讲一讲么?这个后台用到了mongodb、redis啥的,整个是如何启动的?对这些没什么了解。执行npm start 命令报错了,说babel-node不是内部命令。
在npm run build后,中间出现
ERROR in multi vendor
Module not found: Error: Cannot resolve module 'angular-i18n/angular-locale_ZH-CN.js' in /home/m-mall-admin/public
@ multi vendor
另外,我的centos没有安装中文。
后台用户名、密码多少??
您好,请问再启动npm start之后打不开网页是什么情况,代码克隆完后再哪个环节导入呀
后台前端登录界面,输入任何信息都不会有提示,也不会进行页面跳转。
后台登录界面,输入用户名密码admin/123456登录,后台显示以下错误信息:
name: 'UnauthorizedError',
message: 'No authorization token was found',
code: 'credentials_required',
status: 401,
inner: { message: 'No authorization token was found' } }
请问是哪里的问题?
后台已经跑起来,后台管理也能登录。
但是微信端获取api的接口,全部是401
build目录已经本地生成,上传服务器(服务生成build,就卡死自动取消,这是个问题)
请问,我还差什么?
后台说:No authorization token was found
是token没有设置吗?
弄了一天,没成功,还请指教下!
C:\Users\Administrator\Desktop\m-mall-admin-master\m-mall-admin-master>cnpm start
[email protected] start C:\Users\Administrator\Desktop\m-mall-admin-master\m-mall-admin-master
babel-node ./bin/www
[2017-11-20 00:03:41.784] [ERROR] console - (node:8472) DeprecationWarning: open()
is deprecated in mongoose >= 4.11.0, use openUri()
instead, or set the useMongoClient
option if using connect()
or createConnection()
. See http://mongoosejs.com/docs/connections.html#use-mongo-client
[2017-11-20 00:03:41.789] [INFO] console - ------ Express server listening on port 3000 ------
[2017-11-20 00:03:41.834] [INFO] console - ------ Redis connection succeed ------
[2017-11-20 00:03:41.856] [INFO] console - ------ Mongodb connection succeed ------
如上述Log~~
我百度到的都是说要加{useMongoClient: true},然而我看db/mongo.js里面已经加了。。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.