安装npm:
由于需要手机端运行pc上编译的前端进行测试,本小菜鸡要捣鼓npm,结果扑面而来的error~ 以此文章作为记录
npm install遇到的问题
1.Command 'npm' not found, but can be installed with:
输入npm insall之后,报以下提示:
Command 'npm' not found, but can be installed with:
sudo apt install npm
解决方案:
没有安装npm, 输入以下命令进行安装
sudo apt install npm
2.This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
输入npm insall之后,报以下提示:
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
> canvas@2.8.0 install /home/root/..../node_modules/canvas
> node-pre-gyp install