Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure if its installed at correct location #33

Open
schroef opened this issue Dec 6, 2022 · 2 comments
Open

Not sure if its installed at correct location #33

schroef opened this issue Dec 6, 2022 · 2 comments

Comments

@schroef
Copy link

schroef commented Dec 6, 2022

I havtn used NPM in quite a while. But i basically just ran the install code in Terminal, using osx 10.11.6 ( i know super old)

I got this "error" in return

[email protected] postinstall /Users/macpro1/node_modules/jsxbin
> node bin/postinstall.js

npm WARN saveError ENOENT: no such file or directory, open '/Users/macpro1/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/Users/macpro1/package.json'
npm WARN macpro1 No description
npm WARN macpro1 No repository field.
npm WARN macpro1 No README data
npm WARN macpro1 No license field.

+ [email protected]
added 61 packages from 33 contributors and audited 61 packages in 15.544s
found 0 vulnerabilities

Seem like its being installed in the wrong spot.

@runegan
Copy link
Owner

runegan commented Dec 6, 2022

Hi! Its seems like you want to install this globally? Are you running this in the home directory? If you want to install this as a global package, you need to add '-g' to the install command.
https://www.tutorialsteacher.com/nodejs/what-is-node-package-manager#:~:text=Install%20Package%20Globally,command%20to%20install%20package%20globally.

hope that helps

@schroef
Copy link
Author

schroef commented Dec 8, 2022

I can't remember how i installed it. I thin i first run it like in the readme, then i did -g
The first run didn't do anything, when i used the global method, it was installed but is not recognised by npm

Those are the warning jgs i showed in the screengrsb

My node_moduoe folder is in use not globally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants