Содержание
- I got the error Please install sqlite3 package manually #264
- Comments
- Please install sqlite3 package manually #13783
- Comments
- Error: Please install sqlite3 package manually #262
- Comments
- electron Error: Please install sqlite3 package manually #11677
- Comments
- pkg+sequelize+sqlite fails #141
- Comments
I got the error Please install sqlite3 package manually #264
Hi guys, I need help I’m novice in this. When I try to run my .exe or for macos result I got the same error, it is like sqlite3 it’s not including in the compression, also I see another issue closed but with not answer of it.
pkg/prelude/bootstrap.js:1155
throw error;
^
Error: Please install sqlite3 package manually
if you need more information let me know, I’m really excited for using this awesome package.
The text was updated successfully, but these errors were encountered:
You have to include the precompiled sqlite3 extension. You’ll find it in node_modules/sqlite3/lib/binding/xxx/node_sqlite3.node
xxx being a node version + platform.
Copy that .node file in the same directory as your generated executable and it should work fine.
If anyone knows how to incorporate it in executables generated by pkg, that’d be nice
I’m using Sequelize to handle my sqlite, and look like my hooks/trigger are no declare in the node_sqlite3.node for some reasons, maybe the problem is that sequelize has sqlte3 as dependency and put the node_sqlit3.node outside of the compression of the executeable generate this error.
example of one hook:
const Article = require(‘./models’).articles;
To see if I get more problems after fix that, I commeted all the hooks/triggers I have afterUpdate/afterCreate by example and when I run that it not show me error, but then when I go to the broswer and try to navegate always appear «Cannot GET /» in the blank page. My server file is using express
const app = express(); . app.use(express.static(__dirname + ‘/frontend’));
then in my frontend I’m using angular router to navigate
Thanks so much for helping me, looks like a complicated situation but thanks for the efforts!
I can’t answer your specific problem but I could dierct you to my current project, which is using pkg.
It’s an app which also serves files, so you have to be careful of how you do setup your package.json so pkg knows exactly where to put what. It uses sqlite3 as well.
Thanks you, that really help me, the solution was correct my pkg section (js and importants assets) inside of package.json and put the node_sqlite3.node in the same directory, also I had to put my_database.sqlite in the same directory of the .node file
By the way if you wanna make exec for x84 and x64 you always need find the precompiled sqlite3 extension, that’s mean you always need to get the precompiled sqlite3 from others computers/os with different arch (x84,x64) because if you put the wrong arch you will get erros
Thanks a lot man !!
I’ve placed node_sqlite3.node in the same directory as my pkg ‘d app yet I continue to get the error
every time I run my packaged app. Is there a step to the process I’m missing?
Источник
Please install sqlite3 package manually #13783
Just started running into this error, despite sqlite3 seeming to install without issue:
Tried «npm rebuild» and it just throws more errors about sqlite3 being unable to build:
The text was updated successfully, but these errors were encountered:
You could also consider using npm:@vscode/sqlite3@^5.0.7 as per TryGhost/node-sqlite3#1493 (comment)
How do I install that version instead?
I’m using node in command line on Windows 11. «npm install sqlite3@^5.0.7» just gives an error:
npm ERR! code ETARGET
npm ERR! notarget No matching version found for sqlite3@5.0.7.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
I have sequelize v6.12 installed now, same error with sqlite3 from that node-gyp
If everything else fails, you can make sure to have all prerequisites for node-gyp installed: https://github.com/nodejs/node-gyp
Add this to your package.json
okay, I have that added to the package.json. then what?
I guess you delete your node_modules and run npm/yarn install again
Reading through the comments again, i think you will need to have Python 3 installed on your machine.
I get 5.0.2 when I check «npm show sqlite3 version» so I’m guessing I need to reinstall or update it from the new location. I tried «npm update sqlite3» and it just threw a bunch of the same errors from node-gyp.
I have Python already installed, which can be found in the error log above:
«Python using Python version 3.7.8 found at «C:Program Files (x86)Microsoft Visual StudioSharedPython37_64python.exe»»
Or do you mean I need it installed outside Visual Studio?
I installed Python 3.10.1 from their website, and still getting those node-gyp errors
So. I modified VS 2019 to check if I was missing dependencies in there for node-gyp, going off this reference in their doc:
«Install Visual C++ Build Environment: Visual Studio Build Tools (using «Visual C++ build tools» workload) or Visual Studio Community (using the «Desktop development with C++» workload)», and found I already have «MSVC v142 — VS 2019 C++ x64/x86 build tools» which is the closest thing I could find that resembled «Visual C++ build tools».
Then I installed an update for VS 2019 that required a reboot. Once I was back in Windows, I tried some node update comands:
Seemed like everything was possibly fixed and all good now? Even if sqlite3 was still showing the wrong version. so I tried a full rebuild:
Источник
Error: Please install sqlite3 package manually #262
Hello! It seems I do something wrong again.
I created a new VM, and want to install the server locally on this Vm again. But this time I have another issue. Please take a look at the log below.
My steps
here I got this error first time
then I try to install it manually
$ lhci server
Error: Please install sqlite3 package manually
at new ConnectionManager (/usr/local/lib/node_modules/@lhci/server/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:31:15)
at new SqliteDialect (/usr/local/lib/node_modules/@lhci/server/node_modules/sequelize/lib/dialects/sqlite/index.js:14:30)
at new Sequelize (/usr/local/lib/node_modules/@lhci/server/node_modules/sequelize/lib/sequelize.js:242:20)
at createSequelize (/usr/local/lib/node_modules/@lhci/server/src/api/storage/sql/sql.js:87:12)
at SqlStorageMethod.initialize (/usr/local/lib/node_modules/@lhci/server/src/api/storage/sql/sql.js:200:23)
at createApp (/usr/local/lib/node_modules/@lhci/server/src/server.js:32:23)
at createServer (/usr/local/lib/node_modules/@lhci/server/src/server.js:59:38)
at Object.runCommand (/usr/local/lib/node_modules/@lhci/cli/src/server/server.js:61:10)
at run (/usr/local/lib/node_modules/@lhci/cli/src/cli.js 💯 38)
at Object. (/usr/local/lib/node_modules/@lhci/cli/src/cli.js:119:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:188:16)
The text was updated successfully, but these errors were encountered:
Источник
electron Error: Please install sqlite3 package manually #11677
WARNING Compiled with 4 warnings 2:02:41 PM
warning in ./node_modules/sequelize/lib/sequelize.js
Critical dependency: the request of a dependency is an expression
warning in ./node_modules/sequelize/lib/dialects/abstract/connection-manager.js
Critical dependency: the request of a dependency is an expression
warning in ./node_modules/sequelize/lib/dialects/abstract/connection-manager.js
Critical dependency: the request of a dependency is an expression
warning in ./node_modules/any-promise/register.js
Critical dependency: the request of a dependency is an expression
File Size Gzipped
dist_electron/index.js 4059.60 KiB 769.57 KiB
Images and other types of assets omitted.
INFO Launching Electron.
Debugger listening on ws://127.0.0.1:50444/353bb2a0-c895-46bc-9026-196f0ef1f3a1
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
App threw an error during load
Error: Please install sqlite3 package manually
at ConnectionManager.loadDialectModule (webpack:///./node_modules/sequelize/lib/dialects/abstract/connection-manager.js?:81:15)
at new ConnectionManager (webpack:///./node_modules/sequelize/lib/dialects/sqlite/connection-manager.js?:22:21)
at new SqliteDialect (webpack:///./node_modules/sequelize/lib/dialects/sqlite/index.js?:14:30)
at new Sequelize (webpack:///./node_modules/sequelize/lib/sequelize.js?:324:20)
at eval (webpack:///./src/background.js?:17:19)
at Module../src/background.js (/Users/siffre/Documents/qbspy/qbDesktop/dist_electron/index.js:6333:1)
at webpack_require (/Users/siffre/Documents/qbspy/qbDesktop/dist_electron/index.js:20:30)
at eval (webpack:///multi./src/background.js?:1:18)
at Object.0 (/Users/siffre/Documents/qbspy/qbDesktop/dist_electron/index.js:6356:1)
at webpack_require (/Users/siffre/Documents/qbspy/qbDesktop/dist_electron/index.js:20:30)
at /Users/siffre/Documents/qbspy/qbDesktop/dist_electron/index.js:84:18
at Object. (/Users/siffre/Documents/qbspy/qbDesktop/dist_electron/index.js:87:10)
at Module._compile (internal/modules/cjs/loader.js:880:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
at Module.load (internal/modules/cjs/loader.js:735:32)
at Module._load (internal/modules/cjs/loader.js:648:12)
at Module._load (electron/js2c/asar.js:717:26)
at Function.Module._load (electron/js2c/asar.js:717:26)
at loadApplicationPackage (/Users/siffre/Documents/qbspy/qbDesktop/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.09:16)
at Object. (/Users/siffre/Documents//qbspy/qbDesktop/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:1)
at Module._compile (internal/modules/cjs/loader.js:880:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
(node:14322) [SEQUELIZE0002] DeprecationWarning: The logging-option should be either a function or false. Default: console.log
(node:14322) [SEQUELIZE0002] DeprecationWarning: The logging-option should be either a function or false. Default: console.log
electron@7.1.1 sqlite3@3.4.1 sequelize@5.21.2
I don’t how to solve it, please help me, thank you everyone!
The text was updated successfully, but these errors were encountered:
Источник
pkg+sequelize+sqlite fails #141
I’ve created the following repository to be a simple test case you can run to see the issue I am having packaging up a simple app that makes use of Sequelize w/ a sqlite data store. Clone this repo for a working example of the errors we are seeing. Is it possible to make this work?
Here is a summary of the issue:
Bundle with pkg using yarn build throws warnings:
Running the resultant executable throws the following errors:
Thanks very much for any guidance.
The text was updated successfully, but these errors were encountered:
Fixed in pkg@4.1.1 . Please try again.
Yes, it looks like that fixed it and the build no longer throws an error. Thank you.
@grempe Did you ever distribute the resulting binary anywhere (move it to another machine or anything)? I’m having a terrible time with the sqlite package and portability. Even across identical machines running the same base images where I’m building on one and running on the other I’m getting the same:
throw new Error(‘Please install sqlite3 package manually’);
behavior I was seeing before 4.1.1. I’m just curious if you’ve seen this behavior at all and if you’ve done anything to resolve it.
1 . Include sqlite3 package to dependencies in your package.json and use pkg package.json syntax (or just pkg . )
or
2 . Use pkg index.js syntax, but insert dummy require(‘sqlite3’) into your index.js . To make pkg include sqlite3 package explicitly.
@mawelsh We didn’t. We were short on time, and it wasn’t known if this issue was being addressed or not, and so we implemented and alternative local DB in our CLI client (NeDB), replacing Sequelize + sqlite3, which has worked well for us in testing so far and has no binary dependencies and so avoids these issues.
I only tested that in my simple test case repository that the build seemed to work correctly now where before it did not.
Thanks for the responses. It’s in my package.json and installs locally. I’m beginning to assume the resulting binary sqlite3-lib that sqlite3 is building is non-portable. The pkg build runs fine as long as it’s run from the folder it’s created in, but after a bit more expirimentation copying it anywhere (even locally on the building machine) causes a failure.
The full error I’m seeing is:
Error: Please install sqlite3 package manually
at new ConnectionManager (C:snapshotpolicy-management-apinode_modulessequelizelibdialectssqliteconnection-manager.js:25:13)
so it looks like the pkg’d exe is looking in the right place (local to the exe) but sqlite3 is complaining for some reason.
Do you distribute sqlite3.node along with final executable? You should.
Thanks a bunch, I didn’t totally understand what that note at the bottom of the readme was getting at. Adding a gulp task to go hunt down native add ons and copy them out to my release folder. Thanks for the help!
Well, then i kindly ask you to rephrase that note. Please tell what idea the note lacks? What would you add for other users who face the same problem?
Just user error on my part. I’m mostly an embedded developer that’s been tossed into node recently. It’s probably mostly on the sqlite3 maintainers not calling it out as a native module. I understood that sqlite was building its own sqlite-lib (to some extent their docs make it sound like if your system doesn’t have sqlite3 installed/in the path it builds it but I’m not totally sure that’s the case either) but didn’t realize that was actually tied into node through a native module. New users to node may miss that basically any package that is calling itself a binding is probably a «native module» and will result in a .node file being built/pulled through gyp that needs to be included.
Perhaps an example of what one would actually do (maybe use sqlite as the example) to resolve it to go along with the text in the readme. Its not clear to me how I would resolve that.
@grempe Did you ever distribute the resulting binary anywhere (move it to another machine or anything)? I’m having a terrible time with the sqlite package and portability. Even across identical machines running the same base images where I’m building on one and running on the other I’m getting the same:
throw new Error(‘Please install sqlite3 package manually’);
behavior I was seeing before 4.1.1. I’m just curious if you’ve seen this behavior at all and if you’ve done anything to resolve it.
portability :
this is because the sqlite plugin is compiled with visual studio, and depending the vc runtime compiled with you need the users to install the compatible runtime. else executing the app will fail,
one of the options there is to create a msi installer, that installs your pkg file and the runtimes.
Источник
Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
seal-mask
In case someone gets this error. After following the instructions twice and getting stuck. and not getting the ‘development.db’ file created.
Installing «sqlite3»: «5.0.0» manually, did the trick for me.
you can do it in the command line. or edit the package.json file and run npm install again.
Good luck!
5 Answers
seal-mask
This was very helpful, thank you.
For those that might run into the same trouble — I was in the learning module Sequelize Model Validation and I was getting the error:
Error: Please install sqlite3 package manually
After deleting the node_modules folder and then going into the package.json
file and in the "dependencies"
I changed
"dependencies": {
...
"sqlite3": "^5.0.0"
}
to
"dependencies": {
...
"sqlite3": "5.0.0"
}
and it worked.
For those that are still not getting it and are still having issues with this error after following the steps mentioned on here, the most simple thing to do is install sqlite3 manually (there are lots of good instructional videos on youtube) then do the whole process again until you the development.db file.
seal-mask
I’m dealing with this as well except I’m getting
Error: Please install mysql2 package manually
I have deleted the node_modules folder, changed package.json to «sqlite3»: «5.0.0» and am still getting this mysql2 error. Anythoughts? I’ve tried re-installing dependencies multiple times.
Answer 1
If you are getting the error cannot find node module sqlite3 or please install sqlite3 package manually in electron
application after install sqlite
. Then this solution can be help full to fix your issue.
Step 1: We need to clone electron quick start project on your local
Source: https://electronjs.org/docs/tutorial/first-app
$ git clone https://github.com/electron/electron-quick-start
Step 2: Go into the repository
$ cd electron-quick-start
Step 3: Install electronJs dependencies
$ npm install
Step 4: Run electron project
$ npm start
Now lets come to most challenging part
Step 5: Now we need to install sqlite dependency
$ npm install sqlite3 --save
$ npm install sequelize --save
Step 6: Open main.js in your IDE and add this code at the end of file to create database connection
Source: http://docs.sequelizejs.com/manual/installation/usage.html
// Create database connection
const Sequelize = require('sequelize');
const sequelize = new Sequelize('database', 'username', 'password', {
host: 'localhost',
dialect: 'sqlite',
operatorsAliases: false,
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
},
storage: './database.sqlite'
});
// Test connection
sequelize
.authenticate()
.then(() => {
console.log('Connection has been established successfully.');
})
.catch(err => {
console.error('Unable to connect to the database:', err);
});
Step 7: Now again start your electron project using npm start
and you will start getting exception
Error: Please install sqlite3 package manually
How we can fix it?
Step 8: To fix this error we need to install electron-rebuild package. Make sure you are using cmd run as Administrator before execute this command otherwise it will never work.
$ npm install --save-dev electron-rebuild
Step 9: Now we have to configure the rebuild command in package.json
under the script
"scripts": {
"rebuild": "electron-rebuild -f -w sqlite3"
}
Step 10: Now we Need to install python and set it into Path in environment variable.
- Download Python: https://www.python.org/download/releases/2.7/
- Open Control Panel > System and Security > System > Advanced System Setting > Enviroment Variables
- In User
variables for %username%
click on new to add a new Item - Set variable name
Path
and variable valueC:Python27
(where you have installed python) and click on ok
Step 10: Now open a new command line and rebuild your electron project
$ npm run rebuild
Step 11: And now you can run it and it will works fine
$ npm start
Happy Programming.
Если вы получаете ошибку, не можете найти модуль узла sqlite3 или установите пакет sqlite3 вручную в electron
приложении после установки sqlite
. Тогда это решение может помочь вам решить проблему.
Шаг 1: нам нужно клонировать электронный проект быстрого запуска на вашем локальном
Источник: https://electronjs.org/docs/tutorial/first-app
$ git clone https://github.com/electron/electron-quick-start
Шаг 2. Перейдите в хранилище
$ cd electron-quick-start
Шаг 3: Установите зависимости от электрона
$ npm install
Шаг 4: Запуск проекта электрона
$ npm start
Теперь давайте перейдем к наиболее сложной части
Шаг 5: Теперь нам нужно установить SQL-зависимость
$ npm install sqlite3 --save
$ npm install sequelize --save
Шаг 6: Откройте main.js в вашей среде IDE и добавьте этот код в конец файла для создания подключения к базе данных
Источник: http://docs.sequelizejs.com/manual/installation/usage.html
// Create database connection
const Sequelize = require('sequelize');
const sequelize = new Sequelize('database', 'username', 'password', {
host: 'localhost',
dialect: 'sqlite',
operatorsAliases: false,
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000
},
storage: './database.sqlite'
});
// Test connection
sequelize
.authenticate()
.then(() => {
console.log('Connection has been established successfully.');
})
.catch(err => {
console.error('Unable to connect to the database:', err);
});
Шаг 7: Теперь снова запустите свой электронный проект, используя npm start
и вы начнете получать исключение
Error: Please install sqlite3 package manually
Как мы можем это исправить?
Шаг 8: Чтобы исправить эту ошибку, нам нужно установить пакет электронной перестройки. Убедитесь, что вы используете команду cmd как администратор, прежде чем выполнять эту команду, иначе она никогда не будет работать.
$ npm install --save-dev electron-rebuild
Шаг 9: Теперь нам нужно настроить команду rebuild в package.json
под сценарий
"scripts": {
"rebuild": "electron-rebuild -f -w sqlite3"
}
Шаг 10: Теперь нам нужно установить python и установить его в переменную окружения Path.
- Загрузить Python: https://www.python.org/download/releases/2.7/
- Открыть панель управления> Система и безопасность> Система> Расширенные настройки системы> Переменные окружения
- В разделе » Пользовательские переменные для% username% » нажмите на новое, чтобы добавить новый элемент
- Задайте имя переменной
Path
и значение переменнойC:Python27
(где вы установили python) и нажмите кнопку OK
Шаг 10: Теперь откройте новую командную строку и перестройте свой электронный проект
$ npm run rebuild
Шаг 11. И теперь вы можете запустить его, и он будет работать нормально
$ npm start
Счастливое программирование.
ПРИМЕЧАНИЕ. Если вы получите эту ошибку на шаге 10 во время выполнения npm run rebuild
× Rebuild Failed
An unhandled error occurred inside electron-rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:ProjectsTestnode_modulessqlite3buildbinding.sln]
gyp ERR! build error
gyp ERR! stack Error: 'C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe' failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:ProjectsTestnode_modulesnode-gyplibbuild.js:262:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Projects\Test\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=1.8.8" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=node_sqlite3" "--module_path=C:\Projects\Test\node_modules\sqlite3\lib\binding\electron-v1.8-win32-x64" "--host=https://mapbox-node-binary.s3.amazonaws.com" "--remote_path=./{name}/v4.0.2/{toolset}/" "--package_name=electron-v1.8-win32-x64.tar.gz"
gyp ERR! cwd C:\Projects\Testnode_modulessqlite3
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed with exit code: 1
Error: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual Studio 2005 or 3) add the location of the component to the system path if it is installed elsewhere. [C:ProjectsTestnode_modulessqlite3buildbinding.sln]
gyp ERR! build error
gyp ERR! stack Error: 'C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe' failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:ProjectsTestnode_modulesnode-gyplibbuild.js:262:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Projects\Test\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=1.8.8" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=node_sqlite3" "--module_path=C:\Projects\Test\node_modules\sqlite3\lib\binding\electron-v1.8-win32-x64" "--host=https://mapbox-node-binary.s3.amazonaws.com" "--remote_path=./{name}/v4.0.2/{toolset}/" "--package_name=electron-v1.8-win32-x64.tar.gz"
gyp ERR! cwd C:\Projects\Testnode_modulessqlite3
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (C:ProjectsTestnode_modulesspawn-rxlibsrcindex.js:277:84)
at SafeSubscriber.__tryOrUnsub (C:ProjectsTestnode_modulesrxjsSubscriber.js:242:16)
at SafeSubscriber.error (C:ProjectsTestnode_modulesrxjsSubscriber.js:201:26)
at Subscriber._error (C:ProjectsTestnode_modulesrxjsSubscriber.js:132:26)
at Subscriber.error (C:ProjectsTestnode_modulesrxjsSubscriber.js:106:18)
at MapSubscriber.Subscriber._error (C:ProjectsTestnode_modulesrxjsSubscriber.js:132:26)
at MapSubscriber.Subscriber.error (C:ProjectsTestnode_modulesrxjsSubscriber.js:106:18)
at SafeSubscriber._next (C:ProjectsTestnode_modulesspawn-rxlibsrcindex.js:251:65)
at SafeSubscriber.__tryOrSetError (C:ProjectsTestnode_modulesrxjsSubscriber.js:251:16)
at SafeSubscriber.next (C:ProjectsTestnode_modulesrxjsSubscriber.js:191:27)
Затем выполните это в командной строке npm install windows-build-tools --global
И при установке windows-build-tools
если вы получите это исключение
async function aquireInstallers(cb) {
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:UsersUserAppDataRoamingnpmnode_moduleswindows-build-toolsdiststart.js:4:29)
Это означает, что вы используете старую версию nodeJS для ее исправления, вы можете установить старую версию Windows-build-tools с помощью npm install [email protected] --global
И теперь вы можете начать проект, используя npm start