GithubHelp home page GithubHelp logo

Cannot find module 'figlet' about ran HOT 6 CLOSED

sly777 avatar sly777 commented on May 4, 2024
Cannot find module 'figlet'

from ran.

Comments (6)

Sly777 avatar Sly777 commented on May 4, 2024

Hey @Obooman ! Thanks for your issue. I checked but did you run npm install before that command? It looks like you didn't install dependencies.

from ran.

Obooman avatar Obooman commented on May 4, 2024

Hi Ilker(nice dressπŸ˜‰),I have already run yarn install before run yarn run setup as README describe,100% sure,that's why it's strange.I'm showing all my commands and outputs below.

AND repeat it,npm install figlet single dependency goes well.

β–² ~ cd /Volumes/Document/github/RAN
β–² RAN at master βœ– yarn     
yarn install v0.15.1
warning [email protected]: "dependencies" has dependency "figlet" with range "^1.2.0" that collides with a dependency in "devDependencies" of the same name with version "1.2.0"
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
warning Incorrect peer dependency "next@^2.x.x".
[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
✨  Done in 203.55s.
β–² RAN at master βœ– yarn run setup
yarn run v0.15.1
$ npm run setup:before && node ./helper_scripts/CL_commands/setup.js && npm run setup:after 
npm WARN invalid config init-author-url="github.com/obooman"
npm WARN invalid config Must be a full url with 'http://'

> [email protected] setup:before /Volumes/Document/github/RAN
> npm i shelljs cli-clear


> [email protected] uninstall /Volumes/Document/github/RAN/node_modules/pre-commit
> node uninstall.js


> [email protected] uninstall /Volumes/Document/github/RAN/node_modules/husky
> node ./bin/uninstall.js

husky
uninstalling Git hooks
done

npm WARN gentlyRm not removing /Volumes/Document/github/RAN/node_modules/decompress-zip/node_modules/touch/node_modules/.bin/nopt as it wasn't installed by /Volumes/Document/github/RAN/node_modules/decompress-zip/node_modules/touch/node_modules/nopt
npm WARN gentlyRm not removing /Volumes/Document/github/RAN/node_modules/acorn-globals/node_modules/.bin/acorn as it wasn't installed by /Volumes/Document/github/RAN/node_modules/acorn-globals/node_modules/acorn
npm WARN gentlyRm not removing /Volumes/Document/github/RAN/node_modules/acorn-dynamic-import/node_modules/.bin/acorn as it wasn't installed by /Volumes/Document/github/RAN/node_modules/acorn-dynamic-import/node_modules/acorn
npm WARN The package figlet is included as both a dev and production dependency.

+ [email protected]
+ [email protected]
removed 1141 packages and updated 17 packages in 43.203s
module.js:472
    throw err;
    ^

Error: Cannot find module 'figlet'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Volumes/Document/github/RAN/helper_scripts/CL_commands/__helpers.js:1:78)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
error Command failed with exit code 1.
info Visit http://yarnpkg.com/en/docs/cli/run for documentation about this command.
β–² RAN at master βœ– 

from ran.

Sly777 avatar Sly777 commented on May 4, 2024

Thanks for the error log, @Obooman! hmmm, the weird thing is I followed same steps on mac and Linux but I couldn't get the same error. I saw somehow It uninstalls "pre-commit" and "husky" on your log. Also yarn looks older version than mine. I'm using yarn v0.24.6 so If it's possible, can you update yarn and try again?

from ran.

Sly777 avatar Sly777 commented on May 4, 2024

Hey @Obooman, I found the bug on node.js v8. I don't know why It's uninstalling some packages on node.js v8. I will work on that.

from ran.

Sly777 avatar Sly777 commented on May 4, 2024

Last Update πŸ˜„
I pushed hotfix for node.js v8 now. I tested on v8.1.3 and It works but can you also test it, please?

from ran.

Obooman avatar Obooman commented on May 4, 2024

Hi,Have checked current master branch and it works well,good job!

from ran.

Related Issues (20)

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.