You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: I got an existed project which use yarn.lock and I want to convert yarn.lock to package.lock.
Steps:
I run yarn install , generate node_modules.
run synp --source-file yarn.lock just like the doc says. Generate package-lock.json successfully.
run npm install. Got some "Cannot find module ..." error in the middle, and "remove 1842 packages... " info at the end. And, lots of dependencies in package-lock.json has been removed after running npm install!
run npm run serve. Failed in error "Error: Cannot find module... "
Result: So, I converted yarn.lock to package-lock.json successfully and conveniently, but this package-lock.json cannot install module properly and of course I can't run this project using this package-lock.json.
What I found: I removed node_modules and package-lock.json and retry Step1 and 2. Find out that every module in new generated package-lock.json has empty "requires" field. I think that will result in lots of first level indirect dependency package in package-lock lose connection to other package and seems like they are dependencies of nothing. The package-lock.json whose content been cut a lot after Step3 can prove it .
Are you reporting a conversion error? Please include a link to yarn.lock / package-lock.json:
Issue description:
Background: I got an existed project which use yarn.lock and I want to convert yarn.lock to package.lock.
Steps:
yarn install
, generate node_modules.synp --source-file yarn.lock
just like the doc says. Generate package-lock.json successfully.npm install
. Got some "Cannot find module ..." error in the middle, and "remove 1842 packages... " info at the end. And, lots of dependencies in package-lock.json has been removed after runningnpm install
!npm run serve
. Failed in error "Error: Cannot find module... "Result: So, I converted yarn.lock to package-lock.json successfully and conveniently, but this package-lock.json cannot install module properly and of course I can't run this project using this package-lock.json.
What I found: I removed node_modules and package-lock.json and retry Step1 and 2. Find out that every module in new generated package-lock.json has empty "requires" field. I think that will result in lots of first level indirect dependency package in package-lock lose connection to other package and seems like they are dependencies of nothing. The package-lock.json whose content been cut a lot after Step3 can prove it .
Are you reporting a conversion error? Please include a link to
yarn.lock
/package-lock.json
:https://github.com/zhouyuyuyuu/temp/blob/main/yarn.lock
Are you reporting a conversion error? Please also include a link to your
package.json
:https://github.com/zhouyuyuyuu/temp/blob/main/package.json
The text was updated successfully, but these errors were encountered: