最新消息:VPS服务器又从fzhost.net换回Linode了,主题仍用朋友推荐的大前端D8

【未解决】npm run dev警告:These dependencies were not found in node_modules svg-baker-runtime/browser-symbol

npm crifan 302浏览 0评论

之前已经可以正常工作的项目,结果复制到另外一个文件夹中

已经先去

<code>rm -rf node_modues
</code>

了,然后去

<code>npm install
</code>

之后,结果去

<code>npm run dev
</code>

结果出现警告:

<code>  skoda_bi_web git:(master) ✗ npm run dev

&gt; vue-admin-template@1.0.0 dev /Users/crifan/dev/dev_root/daryun/Projects/xxx/skoda_bi_web
&gt; node build/dev-server.js

&gt; Starting dev server...
 ERROR  Failed to compile with 25 errors

These dependencies were not found in node_modules:

* svg-baker-runtime/browser-symbol
* svg-baker-runtime/browser-symbol
* svg-baker-runtime/browser-symbol
。。。
* svg-baker-runtime/browser-symbol

Did you forget to run npm install --save for them?
&gt; Listening at http://localhost:3050
</code>

npm run These dependencies were not found in node_modules

These dependencies were not found in node_modules: · Issue #589 · zeit/next.js

package.json中有个:

<code>"svg-sprite-loader": "3.2.4”,
</code>

Dependencies were not found in node_modules · Issue #199 · JeffreyWay/laravel-mix

对比新旧项目的node_modules

发现旧的有 svg-baker和svg-baker-runtime

所以去搜索这两个项目

npm svg-baker svg-baker-runtime

svg-baker-runtime

kisenka/svg-baker: Node.js library for creating and manipulating SVG sprites

<code>➜  skoda_bi_web git:(master) ✗ npm install svg-baker -D
npm WARN vue-admin-template@1.0.0 No repository field.

+ svg-baker@1.2.16
added 137 packages and updated 81 packages in 22.961s
</code>

然后还是缺少svg-baker-runtime

<code>➜  skoda_bi_web git:(master) ✗ npm install svg-baker-runtime -D
npm WARN vue-admin-template@1.0.0 No repository field.

+ svg-baker-runtime@1.3.3
added 3 packages and updated 81 packages in 16.035s
</code>

转载请注明:在路上 » 【未解决】npm run dev警告:These dependencies were not found in node_modules svg-baker-runtime/browser-symbol

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
15 queries in 0.205 seconds, using 10.29MB memory