I can't even do something simple (create an HTML 5 boiler template) without stupid errors

My copy of webstorm can't find the NPM package. I tried manually telling it /usr/bin/npm  . It's right there. I checked.... it can't run it even when i tell it the exact location. HALP

0
7 comments
Avatar
Permanently deleted user

Also how is it possible that I can't even create a boiler plate HTML 5 document without needing the node package manager? All I want to do is follow along a simple book with simple HTML.

0

Please try specifying a full path to npm package (like /usr/local/lib/node_modules/npm) in this field (note that it should be a package, not a binary, /usr/bin/npm won't work. Normally npm is installed to {prefix}/lib/node_modules, where prefix can be obtained via npm config get prefix

0
Avatar
Permanently deleted user

Edit: I got it with this /usr/local/lib/node_modules/npm-cli/node_modules/npm

 

hmm interesting I have a directory: /usr/local/lib/node_modules/npm-cli/node_modules/npm/node_modules  and in that directory I have more npm folders:

 

npm-cache-filename

npm-install-checks

npmlog

npm-package-arg

npm-registry-client

npm-user-validate

0

please run npm --help and provide the full output

0
Avatar
Permanently deleted user

I got it to work with this directory: /usr/local/lib/node_modules/npm-cli/node_modules/npm

 

Is that unusual or something? I thought everything about my installation was default. I thought a package was an uninstalled program . Why is there /usr/lib and /usr/lib/local ? Arghhh so many questions

0

>Is that unusual or something?

yes, a bit unusual:) But if it works, it's fine:)

0

Please sign in to leave a comment.