0

I have test directory and package.json file in it:

{
  "name": "test",
  "version": "0.0.1",
  "dependencies": { 
    "hem": "~0.1.6",
  }
}

When i try to execute node install i get following error:

module.js:337
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module '/home/shk/test/install'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)

Why?

Thank you.

1 Answer 1

3

Umm, it's npm install not node install. node is used to execute a JavaScript file. npm is used to run tasks related to package/module management.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.