Below you will find pages that utilize the taxonomy term “npm”
Posts
npm WARN old lockfile The package-lock.json file was created with an old version of npm
Recently, I’ve experienced this warning multiple times since I’ve installed a new version of Node.js and npm. Apparently we can update the version of the lockfile package-lock.json. It’s apparently quite easy to do. Just run:
npm install --package-lock-only Credits to this mothertrucker image/svg+xml
Posts
SyntaxError: Cannot use import statement outside a module
For the secret game I am developing, I needed a database to store User and Profile data. The game’s backend server is developed using Node.js and Typescript, and to simplify connecting to the MySQL database, I wanted to use TypeORM.
TypeORM is awesome. Previously, I had to create the database from scratch and I connected to the database directly and subsequently executed carefully prepared sql queries with parameters. With TypeORM I can specify entities, add columns with specific qualities.