workshopper / how-to-npm

A module to teach you how to module.
https://www.npmjs.com/package/how-to-npm
ISC License
1.12k stars 221 forks source link

no such file or directory, chmod '/usr/local/lib/node_modules/how-to-npm/node_modules/mkdirp/bin/cmd.js' #148

Open njabulomajozi opened 3 years ago

njabulomajozi commented 3 years ago

Getting

no such file or directory, chmod '/usr/local/lib/node_modules/how-to-npm/node_modules/mkdirp/bin/cmd.js'

when running npm i -g how-to-npm

gabolvr commented 3 years ago

I'm getting the same error.

NachoRV commented 2 years ago

I have this error:

Error: Cannot find module 'workshopper-adventure/adventure'
Require stack:
- /usr/local/lib/node_modules/how-to-npm/index.js
johanduque15 commented 2 years ago

same probleme

Pixel48 commented 2 years ago

Same here

I think package workshopper-adventure/adventure is gone, at least for public - logs point to

npm ERR! command git --no-replace-objects ls-remote ssh://git@github.com/workshopper-adventure/adventure.git

but workshopper-adventure/adventure respones with 404

Does anyone know what functionality adventure package provides?

r0ulito commented 2 years ago

Faced the same problem today with students. All you have to do to get rid of this error is to run npm install in the folder where how-to-npm is installed globally

jakubkloc commented 2 years ago

@r0ulito Doesn't work for me, neither in npm folder and nested node_modules folder: image

image

lanofblue commented 3 months ago

@r0ulito Doesn't work for me, neither in npm folder and nested node_modules folder: image

image

Actually, you should do this in .npm-global/lib/node_modules/how-to-npm. The right path for macOS is /Users/$User/.npm-global/lib/node_modules/how-to-npm. Make sure there is a package.json file in your folder. CleanShot 2024-08-05 at 16 10 44@2x