因此,我导航到我的项目目录并运行npm install scrollama intersection-observer。它将文件安装在我的HOME/node-modules上,而不是项目文件夹中。但是,在安装过程中出现了警告:
npm WARN saveError ENOENT: no such file or directory, open '[my-home]/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '[my-home]/package.json'
npm WARN [my-user] No description
npm WARN [my-user] No repository field.
npm WARN [my-user] No README data
npm WARN [my-user] No license field.那么为什么它要全局安装(或者安装在我的家里,而不是我的项目文件夹中)?
https://stackoverflow.com/questions/51243012
复制相似问题