赞
踩
去官网,Other Downloads,Previous Releases,download,下载zip,解压即可,2,064 个文件,485 个文件夹,占用空间83.4M
如果想再其他路径直接运行node.exe,需要为其设置环境变量
vim ~/.bashrc
for userexport PATH=$PATH:/home/pdd/Documents/node-v18.10.0-linux-x64/bin
node -v
or npm -v
清除缓存:npm cache clean -f
将项目中的node_modules文件夹以及package-lock.json文件删除
执行:npm install --registry=https://registry.npm.taobao.org重新拉取依赖
启动项目:npm run dev
https://github.com/microsoft/onnxjs/tree/master | https://github.com/microsoft/onnxjs/tree/master/examples/browser |
---|---|
https://musetransfer.com/s/xryqxipiz 请点击链接获取《无主题 - onnxjs-master.zip》, 有效期至2月27日 | |
-https://github.com/Microsoft/onnxjs-demo/tree/data/data/examples/models |
https://github.com/microsoft/onnxjs-demo | https://musetransfer.com/s/t0lrmxuku 请点击链接获取《无主题 - onnxjs-demo-master.zip》, 有效期至2月27日 |
---|---|
/home/pdd/CLionProjects/web/onnxjs-demo-master/public/resnet50v2.onnx |
(base)$:~/CLionProjects/web/onnxjs-master/examples/browser/resnet50$ npm install http-server -g
added 39 packages, and audited 40 packages in 18s
10 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm notice
npm notice New major version of npm available! 8.19.2 -> 9.5.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.5.0
npm notice Run npm install -g npm@9.5.0 to update!
npm notice
(base) $:~/CLionProjects/web/onnxjs-master/examples/browser/resnet50$ http-server .. -c-1 -p 3000 Starting up http-server, serving .. http-server version: 14.1.1 http-server settings: CORS: disabled Cache: -1 seconds Connection Timeout: 120 seconds Directory Listings: visible AutoIndex: visible Serve GZIP Files: false Serve Brotli Files: false Default File Extension: none Available on: http://127.0.0.1:3000 http://192.168.0.109:3000 Hit CTRL-C to stop the server
- Node 成功的主要因素之一是它广受欢迎的软件包管理器——npm,因为 npm 使 JavaScript 开发人员可以快速方便地共享软件包
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。