Sample code cannot be used after installing gulp

Asked 2 years ago, Updated 2 years ago, 48 views

We are proceeding with the "Build and Run Samples" procedure at the following URL, but the npm install command fails and cannot complete.I tried adding sudo, but it didn't change.
Could you tell me how to resolve it?

https://docs.microsoft.com/ja-jp/microsoftteams/platform/tutorials/get-started-nodejs-app-studio

The operating system is mac ver10.15.3.

Below is the error in the terminal.

npm ERR!code ENOENT
npm ERR!syscall stat
npm ERR!path/Users/xxx/msteams-samples-hello-world-nodejs/node_modules/botbuilder-teams/node_modules/botbuilder/skills-validator/skills-validator-1.0.0.tgz
npm ERR!errno-2
npm ERR! enoent ENOENT: no such file or directory, stat'/Users/xxx/msteams-samples-hello-world-nodejs/node_modules/botbuilder-teams/node_modules/botbuilder/skills-validator/skills-validator-1.0.ztg
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

macos node.js

2022-09-29 22:48

1 Answers

There was an issue with a similar error in the repository of the code I am using this time: https://github.com/OfficeDev/msteams-samples-hello-world-nodejs/issues/33

I'm not scrutinizing the contents, but it seems to be a dependency issue. If you delete package-lock.json, you may have made some incompatible changes to the dependency library. (If you remove and reinstall package-lock.json, you may have a different version of the tutorial.)


2022-09-29 22:48

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.