Topic: getting started cli
russellclark free asked 5 years ago
Expected behavior following getting started cli
Actual behavior see below. For your informatio the same thing happens on Windows 10.
Resources (screenshots, code snippets etc.) mdb init ? Choose project to initialize Angular-Bootstrap-with-Material-Design Cloning into 'Angular-Bootstrap-with-Material-Design'...
┌─────────┬────────┬─────────────────────────────┐ │ (index) │ Status │ Message │ ├─────────┼────────┼─────────────────────────────┤ │ 0 │ 0 │ 'Initialization completed.' │ │ 1 │ 0 │ 'Project metadata saved.' │ └─────────┴────────┴─────────────────────────────┘ russell@Ubuntu16-04:~/pdtemplatean8$ mdb publish ? Missing package.json file. Create? Yes This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults.
See npm help json
for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg>
afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit. package name: (pdtemplatean8) version: (1.0.0) description: entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to /home/russell/pdtemplatean8/package.json:
{ "name": "pdtemplatean8", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" }
Is this OK? (yes) yes ┌─────────┬────────┬────────────────────────────────────────────┐ │ (index) │ Status │ Message │ ├─────────┼────────┼────────────────────────────────────────────┤ │ 0 │ 0 │ 'package.json created.' │ │ 1 │ 0 │ 'package.json file created. Publishing...' │ └─────────┴────────┴────────────────────────────────────────────┘ Problem with reading project metadata: Error: ENOENT: no such file or directory, open '/home/russell/pdtemplatean8/.mdb' ┌─────────┬────────┬──────────────────────────────┐ │ (index) │ Status │ Message │ ├─────────┼────────┼──────────────────────────────┤ │ 0 │ │ │ │ 1 │ 400 │ 'Missing package.json file.' │ └─────────┴────────┴──────────────────────────────┘ russell@Ubuntu16-04:~/pdtemplatean8$
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- ForumUser: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.8.0
- Device: laptop
- Browser: cli
- OS: ubuntu 16.04
- Provided sample code: Yes
- Provided link: No
Sebastian Kaczmarek staff commented 5 years ago
Please format your question because it's very hard to read. Also, have you tried re-login?
mdb logout
and thenmdb login
russellclark free commented 5 years ago
Sorry if this is hard to read. It is the output from your cli.If it helps this is the relevant line:
Problem with reading project metadata: Error: ENOENT: no such file or directory, open '/home/russell/pdtemplatean8/.mdb'
This happend on both Win10 & Ubuntu16.04
I have just logged in & tried again on win 10 this is the output:
C:\RRCMDB>mdb init
? Choose project to initialize angular-ui-kit(node:3192) UnhandledPromiseRejectionWarning: Error: socket hang up at connResetException (internal/errors.js:570:14) at Socket.socketOnEnd (_http_client.js:440:23) at Socket.emit (events.js:215:7) at endReadableNT (_stream_readable.js:1183:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)(node:3192) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)(node:3192) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sebastian Kaczmarek staff commented 5 years ago
Sorry for the inconveniences, we had a problem with one of our FTP servers. It shouldn't throw that error anymore. Also, which version of
mdb-cli
do you use? Have you tried upgrading to the latest one?