Comments (6)
Did you use pnpm i
to install it?
from cook.
I kept pnpm-lock.yaml
in this project to ensure its dependencies are exactly correct.
npm i -g pnpm
pnpm i
I think it will work.
from cook.
I kept
pnpm-lock.yaml
in this project to ensure its dependencies are exactly correct.npm i -g pnpm pnpm iI think it will work.
Yes I did install the packages like this, using a dockerfile:
FROM node:lts-alpine
RUN apk update
RUN apk add xdg-utils
RUN npm install -g pnpm
WORKDIR /app
COPY package*.json ./
RUN pnpm install
COPY . .
# convert csv to json
# automatically executed when postinstall
RUN pnpm convert
EXPOSE 3333
ENTRYPOINT ["pnpm", "dev"]
The building step 7 has the following logs:
Step 7/11 : RUN pnpm install
---> Running in 99eec05a6605
Progress: resolved 1, reused 0, downloaded 0, added 0
Progress: resolved 48, reused 0, downloaded 34, added 0
Progress: resolved 124, reused 0, downloaded 104, added 0
Progress: resolved 198, reused 0, downloaded 175, added 0
Progress: resolved 327, reused 0, downloaded 276, added 0
Progress: resolved 399, reused 0, downloaded 346, added 0
Progress: resolved 553, reused 0, downloaded 492, added 0
Progress: resolved 736, reused 0, downloaded 661, added 0
Packages: +808
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 828, reused 0, downloaded 758, added 0
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /root/.pnpm-store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 828, reused 0, downloaded 808, added 808, done
.../node_modules/vue-demi postinstall$ node ./scripts/postinstall.js
.../node_modules/vue-demi postinstall: Done
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall: Done
?WARN? "postinstall" script of "@" inside "/app" is skipped as the working directory seems suspicious. To run this lifecycle script anyway, use "--unsafe-perm".
dependencies:
+ @gtm-support/vue-gtm 1.4.0
+ @vueuse/core 8.2.6
+ @vueuse/head 0.7.6
+ nprogress 0.2.0
+ pinia 2.0.13
+ prism-theme-vars 0.2.2
+ vue 3.2.33
+ vue-demi 0.12.5
+ vue-router 4.0.14
devDependencies:
+ @antfu/eslint-config 0.20.6
+ @iconify-json/fe 1.1.1
+ @iconify-json/gg 1.1.1
+ @iconify-json/ic 1.1.2
+ @iconify-json/mdi 1.1.9
+ @iconify-json/ri 1.1.1
+ @types/markdown-it-link-attributes 3.0.1
+ @types/nprogress 0.2.0
+ @vitejs/plugin-vue 2.3.1
+ consola 2.15.3
+ critters 0.0.16
+ cross-env 7.0.3
+ eslint 8.13.0
+ esno 0.14.1
+ https-localhost 4.7.1
+ markdown-it-link-attributes 4.0.0
+ markdown-it-prism 2.2.4
+ pnpm 6.32.9
+ sass 1.50.1
+ star-markdown-css 0.3.3
+ typescript 4.6.3
+ unocss 0.31.6
+ unplugin-auto-import 0.7.1
+ unplugin-vue-components 0.19.3
+ vite 2.9.5
+ vite-plugin-inspect 0.5.0
+ vite-plugin-md 0.12.4
+ vite-plugin-pages 0.23.0
+ vite-plugin-pwa 0.11.13 (0.12.0 is available)
+ vite-plugin-vue-layouts 0.6.0
+ vite-ssg 0.19.2
+ vite-ssg-sitemap 0.2.4
+ vue-tsc 0.34.7
Removing intermediate container 99eec05a6605
So it seems to have unocss 0.31.6 installed? But still it'll say [plugin:vite:import-analysis] Failed to resolve import "@unocss/reset/tailwind.css" from "src/main.ts". Does the file exist?
I know this can be solved by add one line in package.json
from cook.
I can provide further details, here's the output of pnpm list
/app # pnpm list
Legend: production dependency, optional only, dev only
/app (PRIVATE)
dependencies:
@gtm-support/vue-gtm 1.4.0
@vueuse/core 8.2.6
@vueuse/head 0.7.6
nprogress 0.2.0
pinia 2.0.13
prism-theme-vars 0.2.2
vue 3.2.33
vue-demi 0.12.5
vue-router 4.0.14
devDependencies:
@antfu/eslint-config 0.20.6 pnpm 6.32.9
@iconify-json/fe 1.1.1 sass 1.50.1
@iconify-json/gg 1.1.1 star-markdown-css 0.3.3
@iconify-json/ic 1.1.2 typescript 4.6.3
@iconify-json/mdi 1.1.9 unocss 0.31.6
@iconify-json/ri 1.1.1 unplugin-auto-import 0.7.1
@types/markdown-it-link-attributes 3.0.1 unplugin-vue-components 0.19.3
@types/nprogress 0.2.0 vite 2.9.5
@vitejs/plugin-vue 2.3.1 vite-plugin-inspect 0.5.0
consola 2.15.3 vite-plugin-md 0.12.4
critters 0.0.16 vite-plugin-pages 0.23.0
cross-env 7.0.3 vite-plugin-pwa 0.11.13
eslint 8.13.0 vite-plugin-vue-layouts 0.6.0
esno 0.14.1 vite-ssg 0.19.2
https-localhost 4.7.1 vite-ssg-sitemap 0.2.4
markdown-it-link-attributes 4.0.0 vue-tsc 0.34.7
markdown-it-prism 2.2.4
We have unocss
but not @unocss/reset
from cook.
See
Lines 6070 to 6083 in 8a36f79
@unocss/reset
is included in unocss
. Do you loss pnpm-lock.yaml
?
from cook.
See
Lines 6070 to 6083 in 8a36f79
@unocss/reset
is included inunocss
. Do you losspnpm-lock.yaml
?
My bad. I only copied the package.json
file and didn't copy the pnpm-lock.yaml
file. That's why this is happenning.
Thank you for your kind reply.
from cook.
Related Issues (20)
- 请问可以增加搜索模式吗 HOT 5
- button in ChooseFood.vue style error
- 隔离食用手册大全的链接挂掉了 HOT 3
- 肉类里能不能添加一下兔子 HOT 2
- 请问数据更新的方法? HOT 1
- 是否可以在底部加入个人网站备案号 HOT 5
- 大佬 可以添加一个苦瓜吗 ~~~~~~~~~~~~~
- 现在疫情封控已经过去了,能不能推出新功能? HOT 4
- 【二次开发申请】将本项目功能复刻至Android项目子功能 HOT 1
- 大佬,能不能自定义数据存储在本地 HOT 1
- 居然没有麻婆豆腐! 连麻婆豆腐包都有!怎么能没有麻婆豆腐! HOT 2
- 菜谱选材的初期交互表现与预期不符 HOT 1
- https://cook.yunyoujun.cn挂了 我这是广东电信 HOT 4
- 使用 uniapp 将网站制作为app HOT 1
- 从在线表格拉取数据并构建
- 使用 useVirtualList 实现搜索虚拟列表
- 爬取去除失效菜谱链接
- AI 爬取菜谱数据? HOT 2
- i18n HOT 1
- [feature]希望【吃什么】功能可以支持食材和烹饪工具的筛选
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 cook.