Getting NPM error
App Development3 posts280 views1 likesLast activity Dec 2022
VI
Virendra_SolankeOP
Dec 2022Hi ,
I am trying to follow the Youtube tutorial of DAML101 . While running second app, I am getting an error from npm.
I executed daml new MySecondDamlApp --template create-daml-app
2. daml build
3.daml start
4. in UI folder executed npm i & its not able to install packages.
please let me know , if I am doing something wrong or missed any steps .
attaching screenshot for refference.
thanks
WA
WallaceKelly
Dec 2022@Virendra_Solanke I’m not sure what is going on in your case. I did the following, which works without error:
daml new MySecondDamlApp --template create-daml-appcd MySecondDamlAppdaml start- Opened new terminal.
cd MySecondDamlApp/uinpm i
Perhaps there is a clue in the versions we are using? Here are mine:
> daml version
SDK versions:
2.4.0
2.4.2 (project SDK version from daml.yaml)
> node -v
v14.21.1
> npm -v
6.14.17
Any clues there?
VI
Virendra_Solanke
Dec 2022Thanks @WallaceKelly , I was using node 18x version. I downgrade it to 16x & working fine for me now.
