npm ERR! asyncWrite is not a function

前端 未结 16 1821
既然无缘
既然无缘 2021-02-06 21:44

npm install -g firebase-tools npm ERR! asyncWrite is not a function npm ERR! pna.nextTick is not a function

npm ERR! A complete log of this run can be found in: npm ERR!

16条回答
  •  孤城傲影
    2021-02-06 21:48

    Usually, the best way for fix it is:

    rm -R /usr/local/lib/node_modules/npm and reinstall Node.js.

    My recommendation is install every time Node.js from source code (yes, running make && make install). If you using Debian/Ubuntu, remember first install build-essential

    $ sudo apt-get install build-essential
    $ wget https://nodejs.org/dist/v10.6.0/node-v10.6.0.tar.gz
    $ tar -zxvf node-v10.6.0.tar.gz
    $ cd node-v10.6.0
    $ make
    $ sudo make install
    

    Regards.

提交回复
热议问题