Friday 25 May 2018

npm install removes itself and some packages

Hello, i am just beginning with NodeJS and i encouraged a problem. Everytime when i try to install a package using npm it just removes itself and some packages. Here is example log when i tried to install discord.js:PS G:\NodeJS> npm install discord.js npm WARN saveError ENOENT: no such file or directory, open 'G:\NodeJS\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 'G:\NodeJS\package.json' npm WARN discord.js@11.3.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.3.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.3.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.3.2 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.3.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.3.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself. npm WARN discord.js@11.3.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself. npm WARN NodeJS No description npm WARN NodeJS No repository field. npm WARN NodeJS No README data npm WARN NodeJS No license field. + discord.js@11.3.2 added 1 package and removed 476 packages in 6.274s PS G:\NodeJS> npm install module.js:549 throw err; ^ Error: Cannot find module 'G:\NodeJS\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3 module.js:549 throw err; ^ Error: Cannot find module 'G:\NodeJS\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3 PS G:\NodeJS>

Submitted May 25, 2018 at 10:39AM by Fearcore4K

No comments:

Post a Comment