question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use create-yo trampoline in documentation

See original GitHub issue

So, it appears that it’s actually possible to bootstrap a Volto project “hands-free”, no prerequisite installed package by running:

npm init yo @plone/volto

and this works also:

npm init yo @plone/volto:addon

So I propose that we tweak our documentation and recommend this approach as default.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
HillLiucommented, Jan 1, 2022

There is a simple solution with zero dependencies, and only use node native modules.

such as…

npx yonpx @plone/volto volto-tutorial-project
0reactions
HillLiucommented, Jan 5, 2022

@fredvd quick verify on node 14 and 16, it should be resolved.

Breaks right away with the ‘cannot find libnpx’ error message…

npx yonpx @plone/volto volto-tutorial-project
node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module 'libnpx'
Require stack:
- /Users/fred/.nvm/versions/node/v16.13.1/bin/node_modules/npm/node_modules/libnpx/noop.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/fred/.npm/_npx/f1e212ed1c50d94c/node_modules/yonpx/src/init.js:16:34)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/fred/.nvm/versions/node/v16.13.1/bin/node_modules/npm/node_modules/libnpx/noop.js'
  ]
}
npm -g list
/Users/fred/.nvm/versions/node/v16.13.1/lib
├── corepack@0.10.0
└── npm@8.1.2

node -v
v16.13.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trampolines - Mono Project
Trampolines are small, hand-written pieces of assembly code used to perform various tasks in the mono runtime. They are generated at runtime using...
Read more >
trampoline - clojure.core | ClojureDocs - ClojureDocs
Short tutorial-style article with example of using trampoline at this link: ;; http://jakemccrary.com/blog/2010/12/06/trampolining-through-mutual-recursion/.
Read more >
How do I make something like a trampoline? - Construct 3
I'm looking to create a game where the character is on a trampoline and has to jump on it to go higher. so...
Read more >
How to create a trampoline function for hook - Stack Overflow
Here is a simple x86 detour and trampoline hook based on this tutorial using Direct3D's EndScene() function as a example:
Read more >
Desktop Trampoline - GitHub
A cross-platform no-dependency TCP-based trampoline for GitHub Desktop, ... be as easy as running yarn and subsequent builds can be done using yarn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found