Skip to content

Commit

Permalink
Fix node path mismatch error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Jan 25, 2015
1 parent 206aa5b commit 504b91a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/messages/node-path-path-mismatch-windows.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

[{{ "Fix" | cyan}}] Append the npm root value to your NODE_PATH variable
If you're using cmd.exe, run this command to fix the issue:
{{ 'setx NODE_PATH "%NODE_PATH%;' | magenta }}{{ path | magenta }}{{ '"' | magenta }}
{{ 'setx NODE_PATH "%NODE_PATH%;' | magenta }}{{ npmroot | magenta }}{{ '"' | magenta }}
Then restart your command-line. Otherwise, you can setup NODE_PATH manually:
{{ "https://github.com/sindresorhus/guides/blob/master/set-environment-variables.md#windows" | magenta }}
4 changes: 2 additions & 2 deletions lib/messages/node-path-path-mismatch.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

[{{ "Fix" | cyan}}] Append the npm root value to your NODE_PATH variable
Add this line to your .bashrc
{{ "export NODE_PATH=$NODE_PATH:" | magenta }}{{ path | magenta }}
{{ "export NODE_PATH=$NODE_PATH:" | magenta }}{{ npmroot | magenta }}
Or run this command
{{ 'echo "export NODE_PATH=$NODE_PATH:' | magenta }}{{ path | magenta }}{{ '" >> ~/.bashrc && source ~/.bashrc' | magenta }}
{{ 'echo "export NODE_PATH=$NODE_PATH:' | magenta }}{{ npmroot | magenta }}{{ '" >> ~/.bashrc && source ~/.bashrc' | magenta }}

0 comments on commit 504b91a

Please sign in to comment.