flow-playground icon indicating copy to clipboard operation
flow-playground copied to clipboard

Exported Playground tutorials fail on `npm install`

Open peter-strauss opened this issue 4 years ago • 1 comments

Describe the bug After exporting a smart contract from Flow Playground, for example https://docs.onflow.org/cadence/tutorial/02-hello-world/ , an error is thrown when npm install is run.

To Reproduce Run npm install inside test folder.

Result: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] install: yarn install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Expected behavior The necessary files should be installed if you run npm install inside test folder.

Desktop (please complete the following information):

  • OS: Windows
  • NPM Version: 6.14.9
  • Yarn Version: 1.22.10

peter-strauss avatar Feb 08 '21 17:02 peter-strauss

tested in Mac OS X, npm install works for me. @peter-strauss is this still an issue for you? if so, it could be a window platform-specific issue

kerrywei avatar Dec 17 '21 00:12 kerrywei

Tested on mac os 12.5.1 m1 and it worked

alse avatar Sep 15 '22 16:09 alse