Comments (3)
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.
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.
Great, thanks @LorenAmelang. Closing
from qnm.
Related Issues (20)
- FR: Support for monorepos within subdirectory? HOT 15
- Dedupe the reasons for a module to be installed
- Use Ellipsis when there are more than 3 reasons for having a module HOT 1
- ENAMETOOLONG: name too long, scandir xxx HOT 1
- Add pnpm support? HOT 8
- Bring back shell autocompletions HOT 1
- What does count actually mean? HOT 3
- Option `--disable-colors` seems not to be working HOT 1
- fish completions command error HOT 1
- find version in node javascript HOT 1
- Recently changed dependencies HOT 5
- Add a way to include bundled dependencies HOT 5
- Mark a dependency with (resolutions) in case it's affected by yarn's resolutions
- Mark a dependency with (overrides) in case it's affected by npm's overrides
- Idea: Display nohoist indication for packages that affected by the nohoist configuration HOT 1
- Support parsing yarn 3 lock files
- Bug: qnm spawns check.js which eats CPU HOT 3
- Windows: Unable to use on scoped packages HOT 3
- Scoped packages should be displayed using `/` separator, regardless of OS HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qnm.