question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install with npm

See original GitHub issue

I tried to install shx with npm (globaly, locally, as dep, as devDep) both linux and windows machines. But it breaks during linking. It looks like it does not find lib/cli.js (see the log below).

npm install shelljs/shx

npm-debug.log

1095 verbose about to build /tmp/node_modules/shx/node_modules/shelljs
1096 info build /tmp/node_modules/shx/node_modules/shelljs
1097 info linkStuff shelljs@0.6.0
1098 silly linkStuff shelljs@0.6.0 has /tmp/node_modules/shx/node_modules as its parent node_modules
1099 verbose linkBins shelljs@0.6.0
1100 verbose link bins [ { shjs: './bin/shjs' },
1100 verbose link bins   '/tmp/node_modules/shx/node_modules/.bin',
1100 verbose link bins   false ]
1101 verbose linkMans shelljs@0.6.0
1102 verbose rebuildBundles shelljs@0.6.0
1103 verbose rebuildBundles [ 'glob', 'interpret', 'rechoir' ]
1104 silly gentlyRm /tmp/node_modules/shx/node_modules/.bin/shjs is being purged
1105 verbose gentlyRm don't care about contents; nuking /tmp/node_modules/shx/node_modules/.bin/shjs
1106 info install shelljs@0.6.0
1107 info postinstall shelljs@0.6.0
1108 verbose unlock done using /home/kirly/.npm/_locks/shelljs-4afc8c83066b6587.lock for /tmp/node_modules/shx/node_modules/shelljs
1109 verbose about to build /tmp/node_modules/shx
1110 info build /tmp/node_modules/shx
1111 info linkStuff shx@0.0.1
1112 silly linkStuff shx@0.0.1 has /tmp/node_modules as its parent node_modules
1113 verbose linkBins shx@0.0.1
1114 verbose link bins [ { shx: 'lib/cli.js' }, '/tmp/node_modules/.bin', false ]
1115 verbose linkMans shx@0.0.1
1116 verbose rebuildBundles shx@0.0.1
1117 verbose rebuildBundles [ '.bin', 'shelljs' ]
1118 verbose unlock done using /home/kirly/.npm/_locks/shx-f2158f07ac2468a2.lock for /tmp/node_modules/shx
1119 verbose stack Error: ENOENT, chmod '/tmp/node_modules/shx/lib/cli.js'
1119 verbose stack     at Error (native)
1120 verbose cwd /tmp
1121 error Linux 3.16.0-4-amd64
1122 error argv "/usr/bin/node" "/usr/bin/npm" "i" "-D" "shelljs/shx"
1123 error node v0.12.8
1124 error npm  v2.14.9
1125 error path /tmp/node_modules/shx/lib/cli.js
1126 error code ENOENT
1127 error errno -2
1128 error enoent ENOENT, chmod '/tmp/node_modules/shx/lib/cli.js'
1128 error enoent This is most likely not a problem with npm itself
1128 error enoent and is related to npm not being able to find a file.
1129 verbose exit [ -2, true ]
1130 verbose unbuild node_modules/shx
1131 info preuninstall shx@0.0.1
1132 info uninstall shx@0.0.1
1133 verbose unbuild rmStuff shx@0.0.1 from /tmp/node_modules
1134 silly gentlyRm /tmp/node_modules/.bin/shx is being gently removed
1135 silly gentlyRm verifying /tmp is an npm working directory
1136 silly gentlyRm containing path /tmp is under npm's control, in /tmp
1137 silly gentlyRm deletion target /tmp/node_modules/.bin/shx is under /tmp
1138 verbose gentlyRm vacuuming from /tmp/node_modules/.bin/shx up to /tmp
1139 info postuninstall shx@0.0.1
1140 silly gentlyRm /tmp/node_modules/shx is being purged from base /tmp
1141 verbose gentlyRm don't care about contents; nuking /tmp/node_modules/shx
1142 silly vacuum-fs purging /tmp/node_modules/shx
1143 silly vacuum-fs removing /tmp/node_modules
1144 silly vacuum-fs finished vacuuming up to /tmp

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
kirly-afcommented, May 24, 2016

Thanks for keeping me up to date, great stuff !

0reactions
levithomasoncommented, May 3, 2016

@kirly-af shx is now available on npm:

npm i shx -D
Read more comments on GitHub >

github_iconTop Results From Across the Web

Npm can't install any packages - node.js
If you are a windows user run cmd as administrator and then install packages. It worked for me while installing express via npm....
Read more >
5 Ways to Fix the Npm Install Not Working Issue
Way 1. Make Sure Npm Is Installed · Way 2. Make Sure There Is a Package.json File · Way 3. Delete Lock File...
Read more >
Can't install npm - Unable to correct problems, you have ...
The error you're getting is because the npm package is tied to the built-in nodejs package. Just do this: curl -fsSL https://deb.nodesource.com/ ...
Read more >
How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
Common errors
You are trying to install on a drive that either has no space, or has no permission to write. Free some disk space...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found