我试图在Debian 9上安装jquery,结果失败了。我已经安装了其他软件包使用npm没有问题。当我执行npm安装jquery时,我得到以下错误: npm警告enoent ENOENT:没有这样的文件或目录,打开‘/etc/pacage.json’
发布于 2018-01-21 16:29:02
该命令应该可以工作,因为jquery存在于npm注册表中。为什么要让你去看/etc呢?你的贝壳有什么原因吗?你有互联网连接吗?
如果您想要全局安装它,可以运行(作为sudo)。
npm install -g jquery但对于我的生活我不明白为什么这会有意义..。
发布于 2018-01-21 16:27:53
更新npm,然后创建package.json文件:
npm i -g npm
npm init安装jquery:
npm install jqueryhttps://unix.stackexchange.com/questions/418664
复制相似问题