search

Home  >  Q&A  >  body text

node.js - NPM error when changing Taobao image: interpreter error

The above string is the installation record of cnpm
But when trying to start, it appears: Interpreter error: No such file or directory
Environment:
ubuntu 16.4

Suddenly found that the -g installation reported the same error

扔个三星炸死你扔个三星炸死你2706 days ago1136

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-06-30 09:58:52

    The installation posture is wrong, sorry, it wastes space
    Post the method here
    Do not install from apt! Don't install from apt! Don't install from apt! The nodejs installed from apt is a very old version 4.x
    Say important things three times.
    Download the source code package directly from the official nodejs
    The decompressed folders /bin/node and /bin/npm can be used directly
    If you need a global view, just create ln

    reply
    0
  • ringa_lee

    ringa_lee2017-06-30 09:58:52

    It may be a coding error;
    There seems to be an answer to the interpreter error on the ubuntu forum, you can check it out.

    reply
    0
  • Cancelreply