如何解决我如何在Linux Mint Ulyana上启动npm并修复ENOENT?
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/blackrose_darkchild/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory,open '/home/blackrose_darkchild/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/blackrose_darkchild/.npm/_logs/2020-08-11T13_39_19_447Z-debug.log
似乎无法解决此问题, 累了
394 curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash
395 sudo apt-get install -y nodejs
396 sudo apt-get install gcc g++ make
397 sudo apt-get update && sudo apt-get install yarn
398 node --version
399 npm --version
400 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
401 clear
402 nvm install node
403 nvm install --lts
404 nvm ls
405 nvm use 14.7.0
406 sudo apt update
407 sudo apt install nodejs npm
408 nvm ls
409 nvm use 12.18.3
410 sudo apt install nodejs npm
411 nodejs --version
412 nodejs --v
413 sudo apt install nodejs
414 sudo apt install npm
415 sudo apt install nodejs npm
416 sudo apt install build-essential
417 npm -v
418 npm start
但仍然是相同的错误
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。