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

Quickstart project doesn't run locally #5

Open
elw00d opened this issue Sep 22, 2024 · 1 comment
Open

Quickstart project doesn't run locally #5

elw00d opened this issue Sep 22, 2024 · 1 comment

Comments

@elw00d
Copy link

elw00d commented Sep 22, 2024

I'm trying to run a fresh quickstart project locally. I run npm start on Ubuntu 22.04, but I'm getting an error:

0 ➜ npm start

> @diplodoc/[email protected] start /home/elwood/all/diplodoc-example
> npm run build:docs && node scripts/serve.js


> @diplodoc/[email protected] build:docs /home/elwood/all/diplodoc-example
> yfm --input docs --output docs-html

sh: 1: yfm: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @diplodoc/[email protected] build:docs: `yfm --input docs --output docs-html`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @diplodoc/[email protected] build:docs script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

I installed YFM using the command from the official site npm i diagnostics_channel -g, but now there is another error:

130 ➜ npm start

> @diplodoc/[email protected] start /home/elwood/all/diplodoc-example
> npm run build:docs && node scripts/serve.js


> @diplodoc/[email protected] build:docs /home/elwood/all/diplodoc-example
> yfm --input docs --output docs-html

internal/modules/cjs/loader.js:883
  throw err;
  ^

Error: Cannot find module 'util/types'
Require stack:
- /home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at node_modules/undici/lib/web/fetch/util.js (/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js:158842:28)
    at __require (/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js:48:51)
    at node_modules/undici/lib/web/fetch/headers.js (/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js:166232:9)
    at __require (/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js:48:51)
    at node_modules/undici/lib/web/fetch/response.js (/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js:166679:102)
    at __require (/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js:48:51) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/elwood/.nvm/versions/node/v14.16.1/lib/node_modules/@diplodoc/cli/build/index.js'
  ]
}
@elw00d
Copy link
Author

elw00d commented Sep 22, 2024

Finally I've found out how to make it work. The correct commands are:

npm install
npm start

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