Skip to content

Commit

Permalink
fix: assemblyscript install with npm@7 (node@15)
Browse files Browse the repository at this point in the history
fixes #533

npm@7 ships with node@15 and changes behavior to automatically install
peerDependencies. It seems that the peerDependencies for near-sdk-as
aren't configured perfectly, and this causes problems. Once we figure
out this upstream problem, we may also need to add more explicit
dependencies at the root of the project, since npm@7 may not install
dependencies-of-dependencies to the root node_modules folder, either.

This will be addressed in near/near-sdk-as#312

https://blog.npmjs.org/post/626173315965468672/npm-v7-series-beta-release-and-semver-major
  • Loading branch information
chadoh committed Nov 28, 2020
1 parent 067208d commit d1818d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/contracts/assemblyscript/compile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (verbose) console.log(` build command: ${buildCmd}`)
if (verbose) console.log(` output file: ${path.resolve(outFile)}`)

if (verbose) console.log(' Installing dependencies')
sh.exec('npm install')
sh.exec('npm install --legacy-peer-deps')

sh.exec(buildCmd)

Expand Down

0 comments on commit d1818d9

Please sign in to comment.