jsxbin icon indicating copy to clipboard operation
jsxbin copied to clipboard

Not sure if its installed at correct location

Open schroef opened this issue 3 years ago • 2 comments

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.

schroef avatar Dec 06 '22 19:12 schroef

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

runegan avatar Dec 06 '22 19:12 runegan

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

schroef avatar Dec 08 '22 22:12 schroef