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

Validation Error! when I run npm run data:import #42

Closed
ryusufu opened this issue Oct 24, 2020 · 1 comment
Closed

Validation Error! when I run npm run data:import #42

ryusufu opened this issue Oct 24, 2020 · 1 comment

Comments

@ryusufu
Copy link

ryusufu commented Oct 24, 2020

when i try to import the model data to my mongodb using npm run data:import
I get this error ValidationError: password: Path password is required., email: Path email is required., name: Path name is required.

1

LOG FILE
0 verbose cli [
0 verbose cli 'C:\Program Files\nodejs\node.exe',
0 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
0 verbose cli 'run',
0 verbose cli 'data:import'
0 verbose cli ]
1 info using npm@7.0.2
2 info using node@v15.0.0
3 timing config:load:defaults Completed in 3ms
4 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 4ms
5 timing config:load:builtin Completed in 4ms
6 timing config:load:cli Completed in 3ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:C:\Users\RILWAN\Pictures\Proshop.npmrc Completed in 0ms
9 timing config:load:project Completed in 2ms
10 timing config:load:file:C:\Users\RILWAN.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:C:\Users\RILWAN\AppData\Roaming\npm\etc\npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 2ms
18 timing config:load Completed in 18ms
19 verbose npm-session 52ebecba1e5d9ebc
20 timing npm:load Completed in 41ms
21 timing command:run-script Completed in 7279ms
22 verbose stack Error: command failed
22 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\index.js:63:27)
22 verbose stack at ChildProcess.emit (node:events:327:20)
22 verbose stack at maybeClose (node:internal/child_process:1048:16)
22 verbose stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
23 verbose pkgid proshop@1.0.0
24 verbose cwd C:\Users\RILWAN\Pictures\Proshop
25 verbose Windows_NT 10.0.19042
26 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "data:import"
27 verbose node v15.0.0
28 verbose npm v7.0.2
29 error code 1
30 error path C:\Users\RILWAN\Pictures\Proshop
31 error command failed
32 error command C:\Windows\system32\cmd.exe /d /s /c "node backend/seeder"
33 verbose exit 1

@ryusufu
Copy link
Author

ryusufu commented Oct 24, 2020

Never mind, I fixed the issue. i forgot to export users.js

@ryusufu ryusufu closed this as completed Oct 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant