Code Monkey home page Code Monkey logo

ptkdev-boilerplate / node-cli-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 3.0 2.3 MB

๐Ÿช“ Create node cli with this user friendly boilerplate

Home Page: https://npmjs.com/package/@ptkdev/node-cli-boilerplate

License: Other

Shell 0.79% JavaScript 12.50% TypeScript 81.69% Smarty 5.02%
cli cli-tools command-line command-line-app command-line-interface command-line-tool github-template node node-cli node-cli-boilerplate node-module nodejs npm-cli typescript

node-cli-boilerplate's People

Contributors

ptkdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-cli-boilerplate's Issues

Missing dependency during build process

Versions

  • App Version: v2.0.2
  • Node Version: v14.19.1
  • Operating System: Ubuntu 20.04
  • Browser: N/A

Expected Behavior

Run the npm run build without errors.

Actual Behavior

There is an error during the build process.

$ npm run build

> @ptkdev/[email protected] build /<path>
> tsc

app/translations/translate.ts:10:21 - error TS2307: Cannot find module '@configs/config' or its corresponding type declarations.

10 import configs from "@configs/config";
                       ~~~~~~~~~~~~~~~~~

app/utils/logger.ts:12:20 - error TS2307: Cannot find module '@configs/config' or its corresponding type declarations.

12 import config from "@configs/config";
                      ~~~~~~~~~~~~~~~~~


Found 2 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ptkdev/[email protected] build: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @ptkdev/[email protected] build 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!     /<path>/.npm/_logs/2022-04-04T17_11_13_979Z-debug.log

Steps to Reproduce

  1. Run npm install
  2. Run npm run build

Evidences

$ npm install
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!

> [email protected] postinstall /<path>/node_modules/nodemon
> node bin/postinstall || exit 0


> @ptkdev/[email protected] prepare /<path>
> ts-patch install -s && husky install

husky - Git hooks installed
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/livereload/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1003 packages from 630 contributors in 41.758s

75 packages are looking for funding
  run `npm fund` for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.