我想在ubuntu上安装node.js 7.在运行命令
curl -sL https://deb.nodesource.com/setup_7.x | bash -
Run Code Online (Sandbox Code Playgroud)
要么
sudo curl -sL https://deb.nodesource.com/setup_7.x | bash -
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
## Installing the NodeSource Node.js v7.x repo...
## Populating apt-get cache...
+ apt-get update
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking …Run Code Online (Sandbox Code Playgroud)