Comments (10)
npm is the wrong version.
npm -v
will give you the version number.
Here is my build script.
apt update -y
apt install -y curl
curl -sL https://deb.nodesource.com/setup_18.x | bash -
apt install -y git nodejs python3 curl build-essential
curl https://bootstrap.pypa.io/get-pip.py | python3
cd /root
git clone https://github.com/SamurAIGPT/privateGPT.git
cd privateGPT/client
npm install
cd /root
cd privateGPT/server
pip3 install -r requirements.txt
from embedai.
Please check if you have installed node and npm
from embedai.
can not run the client, SyntaxError: Unexpected token '??='
at cjs/loader.js
from embedai.
@RattyDAVE Thanks for sharing
@cyonghui81 @Crushdada Please update your npm version
from embedai.
No problem. I had the same battle myself.
from embedai.
I am getting a similar issue, but my npm is fully up to date and I tried following the build script above.
[email protected] dev
next dev
/root/privateGPT/client/node_modules/next/dist/cli/next-dev.js:256
showAll: args["--show-all"] ?? false,
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.dev (/root/privateGPT/client/node_modules/next/dist/lib/commands.js:15:30)
at Object. (/root/privateGPT/client/node_modules/next/dist/bin/next:150:28)
at Module._compile (internal/modules/cjs/loader.js:999:30)
from embedai.
I had that too.
curl -sL https://deb.nodesource.com/setup_18.x | bash -
Solved it.
from embedai.
Here are my versions that work.
root@79fe99adb8e1:/# pip -V
pip 23.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
root@79fe99adb8e1:/# npm -v
9.5.1
from embedai.
@YoeJates Looks like a common issue https://stackoverflow.com/questions/74707066/nextjs-unexpected-token
You need to update nvm
from embedai.
Closing due to inactivity
from embedai.
Related Issues (20)
- error fetching answer | model not loaded. HOT 1
- 'Connection aborted.', ConnectionResetError(54, 'Connection reset by peer' HOT 2
- Is there anyone that succesfully run the code ? HOT 4
- Change ports HOT 3
- Use any small models, like LaMini, Flan-T5-783M etc.
- error fetching answer please try again HOT 4
- Missing Docker Files?
- Use CUDA
- Question: Is there a way to load a nfs or cifs fileshare to prepopulate it instead of using the flask front end? HOT 2
- Encoded responses HOT 1
- Semantic Information
- ERROR: The prompt size exceeds the context window size and cannot be processed. HOT 1
- Mount Instead of upload?
- ValidationError: 1 validation error for GPT4All n_ctx. extra fields not permitted (type=value_error.extra)
- Unhandled Runtime Error on Ingest Data
- Implementing LangChain CustomLLM Class for use with other Models
- 404 - Not Found error after running privateGPT.py HOT 3
- Run slowly...in my 16G notebook
- Bot just hangs after a few question
- Source Document HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedai.