npm WARN xxxx license should be a valid SPDX license expression: npm安装js依赖时报错 node_modules

npm ERR! ENOTEMPTY: directory not empty, rename '/home/xxxx/node_modules/less' -> '/home/xxxxxx/node_modules/.less.DELETE'

解决办法:

npm clean

还未解决时:

删除已下载的依赖node_modules:

rm -rf node_modules

重新安装所有依赖

npm  install

安装完成:

发布了157 篇原创文章 · 获赞 85 · 访问量 34万+

猜你喜欢

转载自blog.csdn.net/Areigninhell/article/details/93018166
今日推荐