Home > Net >  npm ERR! code 1 *happens when put command npm install*
npm ERR! code 1 *happens when put command npm install*

Time:06-19

i am noob i just statred this and i have a problem when i write the command 'npm install' i get some errors of differnt types. Please guys if u can help me quick i have this problem since yesterday. Thanks.

npm ERR! code 1
npm ERR! path C:\Users\HP\Downloads\metaplex-master\js\packages\common
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c run-s clean build
npm ERR! > @oyster/[email protected] clean
npm ERR! > rm -rf dist
npm ERR! 'rm' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
npm ERR! npm ERR! Lifecycle script `clean` failed with error:
npm ERR! npm ERR! Error: command failed
npm ERR! npm ERR!   in workspace: @oyster/[email protected]
npm ERR! npm ERR!   at location: C:\Users\HP\Downloads\metaplex-master\js\packages\common
npm ERR! ERROR: "clean" exited with 1.

the directory of install is this :

C:\Users\HP\Downloads\metaplex-master\js>

and i am trying to install the modules from package.json and this is using the command 'npm install' and i was just following a video on how to launch a solana nft collection using candy machine v2 from metaplex.

CodePudding user response:

You have to use yarn or yarn install inside metaplex/js (metaplex-master/js in ur case) in order to do a correctly install. Read this part of the docs.

  • Related