Code Monkey home page Code Monkey logo

Comments (3)

ranyitz avatar ranyitz commented on June 17, 2024

Hi @LorenAmelang
The first error that you've seen is that qnm wasn't able to find a package directory (here)

This means it's trying to traverse upwards to find a package.json (using this package)
This means that the directory that you chose or any directory above it doesn't have a package.json file.
I think that you're using Windows command prompt, but which is a linux command, so it didn't work.

The fact that you've got the error message means that the package was installed correctly, you can run qnm --help to verify.

from qnm.

LorenAmelang avatar LorenAmelang commented on June 17, 2024

Played with this some more. It can work in Windows Anaconda!

(base) PS C:\Users\loren> cd "C:\Users\loren\Documents\Psychoros\Gridsome Test\bulma"
(base) PS C:\Users\loren\Documents\Psychoros\Gridsome Test\bulma> ls

    Directory: C:\Users\loren\Documents\Psychoros\Gridsome Test\bulma

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
...
d-----        11/30/2022   5:21 PM                node_modules
-a----          5/3/2020   4:50 PM         625420 package-lock.json
-a----          5/3/2020   4:49 PM           1209 package.json
...
(base) PS C:\Users\loren\Documents\Psychoros\Gridsome Test\bulma> qnm list
@babel/code-frame
├── 7.0.0 (@babel/core, @babel/template, @babel/traverse...)
├─┬ @babel/template
│ └── 7.18.6
├─┬ @babel/traverse
│ └── 7.18.6
└─┬ gridsome
  └── 7.18.6

@babel/compat-data
└── 7.20.5 (@babel/helper-compilation-targets, @babel/plugin-proposal-object-rest-spread, @babel/preset-env...)
...

But it needs both node_modules and package.json in the directory you run it from:

(base) PS C:\Users\loren\node_modules\core-js> ls

    Directory: C:\Users\loren\node_modules\core-js

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         12/5/2019   9:02 PM                es
d-----         12/5/2019   9:02 PM                features
d-----         12/5/2019   9:02 PM                internals
d-----         12/5/2019   9:02 PM                modules
d-----         12/5/2019   9:02 PM                proposals
d-----         12/5/2019   9:02 PM                stable
d-----         12/5/2019   9:02 PM                stage
d-----         12/5/2019   9:02 PM                web
-a----        10/26/1985   1:15 AM           1043 configurator.js
-a----        10/26/1985   1:15 AM            123 index.js
-a----        10/26/1985   1:15 AM           1064 LICENSE
-a----         12/5/2019   9:02 PM           1948 package.json
-a----        10/26/1985   1:15 AM           2037 postinstall.js
-a----        10/26/1985   1:15 AM           5499 README.md

(base) PS C:\Users\loren\node_modules\core-js> qnm list
could not find node_modules directory
(base)

That "modules" doesn't qualify... Nor does "node_modules" being in the parent directory. Seems to need both in the current directory,

from qnm.

ranyitz avatar ranyitz commented on June 17, 2024

Great, thanks @LorenAmelang. Closing

from qnm.

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.