Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'single' of undefined #11

Closed
senxiaoxing opened this issue Feb 9, 2018 · 4 comments
Closed

TypeError: Cannot read property 'single' of undefined #11

senxiaoxing opened this issue Feb 9, 2018 · 4 comments

Comments

@senxiaoxing
Copy link

spruche@0.1.1 start E:\workNode\Blog\Spruche
node --harmony ./bin/www

E:\workNode\Blog\Spruche\routes\admin.js:23
const friendImgUpload = upload.friendImgUpload.single('friendhead');
^

TypeError: Cannot read property 'single' of undefined
at Object. (E:\workNode\Blog\Spruche\routes\admin.js:23:48)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object. (E:\workNode\Blog\Spruche\app.js:17:15)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! spruche@0.1.1 start: node --harmony ./bin/www
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spruche@0.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\JasonYang\AppData\Roaming\npm-cache_logs\2018-02-09T09_08_03_940Z-debug.log

@IceEnd
Copy link
Owner

IceEnd commented Feb 9, 2018

能把node版本发一下吗?

@senxiaoxing
Copy link
Author

senxiaoxing commented Feb 10, 2018 via email

@lovelifeloveyou
Copy link

我也是报相同的错误,显示TypeError: Cannot read property 'single' of undefined

@IceEnd
Copy link
Owner

IceEnd commented Apr 22, 2018

Duplicate of #12

@IceEnd IceEnd marked this as a duplicate of #12 Apr 22, 2018
Repository owner locked as resolved and limited conversation to collaborators Apr 22, 2018
@IceEnd IceEnd closed this as completed Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants